MoreCoreExtensions
MoreCoreExtensions are a set of core extensions beyond those provided by ActiveSupport.
Extensions Provided
- Array
- delete_nils
- delete_blanks
- delete_blank_paths
- delete_path
- deviation
- duplicates
- include_any?
- include_none?
- include_all?
- fetch_path
- find_path
- has_key_path?
- include_path?
- key_path?
- member_path?
- mean
- random_index
- random_element
- squares
- store_path
- stretch
- stretch!
- zip_stretched
- tableize
- variance
- Hash
- delete_nils
- delete_blanks
- delete_blank_paths
- delete_path
- fetch_path
- find_path
- has_key_path?
- include_path?
- key_path?
- member_path?
- store_path
- Numeric
- square
- round_down
- round_up
- String
- email?
- domain_name?
- ipv4?
- ipv6?
- ipaddress?
- integer?
- guid?
- hex_dump
Installation
Add this line to your application's Gemfile:
gem 'more_core_extensions'
And then execute:
$ bundle
Or install it yourself as:
$ gem install more_core_extensions
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request