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