Sha256: a9a5b7b97a2bd4c25610786349435f95637336d6158a1b0c643f5eae63d54267
Contents?: true
Size: 936 Bytes
Versions: 2
Compression:
Stored size: 936 Bytes
Contents
# HashDeepJoin This gem add Hash#deep_join method to join nested hashes ## Installation Add this line to your application's Gemfile: ```ruby gem 'hash_deep_join' ``` And then execute: $ bundle Or install it yourself as: $ gem install hash_deep_join ## Usage ```ruby example_data = "memory"=>{"total"=>"3868080", "free"=>"349560"} example_data.deep_join # => {"memory_total"=>"3868080", "memory_free"=>"349560"} ``` You can use deep_join with parameter, for example: ```ruby example_data = "memory"=>{"total"=>"3868080", "free"=>"349560"} example_data.deep_join '-' #=> {"memory-total"=>"3868080", "memory-free"=>"349560"} ``` ## Contributing 1. Fork it ( https://github.com/Ynnni/hash-deep-join/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hash_deep_join-0.0.2 | README.md |
hash_deep_join-0.0.1 | README.md |