TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'trys'
And then execute:
$ bundle
Or install it yourself as:
$ gem install trys
3.trys(:to_s, :foo) # => nil
3.trys(:to_s, :to_i) # => 3
3.trys(:to_s, :to_i, :foo) # => nil
Block
3.trys(:to_s) {|o| o.to_i * o.to_i } # => 9
3.trys(:to_s) {|o| o.foo * o.baz } # => nil
Alias
3.try_chain(:to_s, :foo) # => nil
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request