class Cats::CLI
The command line interface for Cats
. Uses Thor to map each method to a command.
Public Instance Methods
fact()
click to toggle source
Acts as the UI for Cats.fact
by showing each cat fact on a new line of text
# File lib/cats/cli.rb, line 15 def fact facts = Cats.fact quantity facts.each { |fact| puts fact } end