Tell you what happen when x changes to y.
Work on methods without any arguments or all arguments have default values.
- Add the dependency to your
shard.yml
:
dependencies:
what_happen:
github: shootingfly/what_happen
- Run
shards install
require "what_happen"
puts what_happen(from: [1, 2, 3], to: 1) # => ["first", "first?", "min", "min?"]
It doesn't work on the following methods.
["transpose", "to_h", "sample", "sum", "product"]
- Fork it (https://github.com/shootingfly/what_happen/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
- Shootingfly - creator and maintainer
Thanks to jbodah for his awesome work on suggest_rb