Transproc
Experimental functional transformations for Ruby.
Installation
Add this line to your application's Gemfile:
gem 'transproc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install transproc
Usage
require 'transproc/hash'
# compose transformation functions
transformation = Transproc(:symbolize_keys) + Transproc(:map, user_name: :name))
# call the function
transformation['user_name' => 'Jane']
# => {:name=>"Jane"}
Contributing
- Fork it ( https://github.com/[my-github-username]/transproc/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