Categories: None [Edit]
more-ruby
A very simple gem that adds some methods to some Ruby standard classes, e.g. .include_any?, .delete_random, etc.
Simply require the gem ( require "more-ruby" ) and the additional methods will be available.
## New instance methods ##
# String
:append, :camelcase, :capitalize_first_letter_only, :escape, :join, :pascalcase, :random_case, :underbarize, :underbarize_and_downcase
# Array
:all_instance_of?, :all_kind_of?, :av, :delete_random, :include_any?, :insert_flat, :mean, :modulo_fetch, :random, :sum, :wrap_fetch
# Numeric
:format_with_thousands_delimiter
# Integer
:digit_count, :format_with_thousands_delimiter, :signif
# Time
:remove_subseconds
# TrueClass
:maybe?, :random
# FalseClass
:maybe?, :random
# NilClass
:empty?
Total
Ranking: - of 183,155
Downloads: -
Daily
Ranking: - of 183,147
Downloads: -
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
127,228 | 4,485 | terse_ruby |
Depends on
Rank | Downloads | Name |
---|
Owners
# | Gravatar | Handle |
---|---|---|
1 | RMorrisby |