what_happen

Version, currently 0.1.01 version
  • 0.1.0latestMay 23, 2020

github.com/shootingfly/what_happen

Tell you what happen when x changes to y.

6 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  what_happen:
    github: shootingfly/what_happen
    version: ~> 0.1.0

Then run:

shards install

shard.yml

Crystal
0.34.0
License
MIT
Author
Shootingfly

Dependencies

This version declares no dependencies.

README

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