Module: Cats
- Defined in:
- lib/cats.rb,
lib/cats/cli.rb,
lib/cats/version.rb
Overview
The central module for Cats, a library/tool that does a small number of cat-related tasks
Defined Under Namespace
Classes: CLI
Constant Summary collapse
- VERSION =
The version of the Cats gem
'0.1.1'.freeze
Class Method Summary collapse
-
.fact(quantity = 1) ⇒ Array
Returns a given number of cat facts, which defaults to 1.
Class Method Details
.fact(quantity = 1) ⇒ Array
Returns a given number of cat facts, which defaults to 1
TODO: Consider allowing more than 202 cat facts (show duplicates?)
20 21 22 |
# File 'lib/cats.rb', line 20 def fact(quantity = 1) @facts.sample quantity end |