This repository has been archived by the owner. It is now read-only.
costelog-crystal v1.0.0
costelog-crystal
This is the Crystal version of gmoralesc's costelog
Installation
- Add the dependency to your
shard.yml
:
dependencies:
costelog-crystal:
github: krthr/costelog-crystal
- Run
shards install
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
- Fork it (https://github.com/krthr/costelog-crystal/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
- The original library was created by Gustavo Morales
- krthr - creator and maintainer
Repository
costelog-crystal
Owner
Statistic
- 2
- 0
- 0
- 0
- 0
- almost 6 years ago
- November 27, 2018
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 06:31:08 GMT
Languages