what_happen v0.1.0

Tell you what happen when x changes to y.

What Happen

Travis CI build Built with Crystal Latest release API docs

Tell you what happen when x changes to y.

Work on methods without any arguments or all arguments have default values.

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  what_happen:
    github: shootingfly/what_happen
  1. 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

  1. Fork it (https://github.com/shootingfly/what_happen/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Thanks

Thanks to jbodah for his awesome work on suggest_rb

Repository

what_happen

Owner
Statistic
  • 6
  • 1
  • 0
  • 0
  • 0
  • almost 3 years ago
  • May 23, 2020
License

MIT License

Links
Synced at

Thu, 25 Apr 2024 07:43:28 GMT

Languages