HashRename
Added rename method for Hash class.
require "hash_rename"
hoge = {test_hoge: "hogehoge"}
new_hoge = hoge.rename(/_/, "-")
p hoge
p new_hoge
Installation
Add this line to your application's Gemfile:
gem 'hash_rename'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hash_rename
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( https://github.com/[my-github-username]/hash_rename/fork )
- 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 a new Pull Request