costelog-crystal

MIT License

This is the Crystal verion of gmoralesc's costelog

Installation

dependencies:
  costelog-crystal:
    github: krthr/costelog-crystal

Usage

require "costelog-crystal"

# Get just one phrase
puts Costelog.random_phrase          # => "Puya el burro"
puts Costelog.random_phrase "Wilson" # => "Va pa' esa Wilson"

# Get all the phrases
puts Costelog.all          # => ["Que vaina e buena", "Ya te dije cuadro", "Va pa' esa cuadro", "cuadro Que vaina linda", ...]
puts Costelog.all "Wilson" # => ["Que vaina e buena", "Ya te dije Wilson", "Va pa' esa Wilson", "Wilson Que vaina linda", ...]

The name param is optional. If you dont pass any name, the library will select a random valid name.

TODO

TODO Write specs

Contributing

  1. Fork it (https://github.com/krthr/costelog-crystal/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