module Cats
The central module for Cats
, a library/tool that does a small number of cat-related tasks
The central module for Cats
, a library/tool that does a small number of cat-related tasks
Constants
- VERSION
The version of the
Cats
gem
Public Instance Methods
fact(quantity = 1)
click to toggle source
Returns a given number of cat facts, which defaults to 1
TODO: Consider allowing more than 202 cat facts (show duplicates?)
@param [Fixnum] quantity the number of cat facts to receive (0-many)
@return [Array] an Array of Strings of cat facts
# File lib/cats.rb, line 20 def fact(quantity = 1) @facts.sample quantity end