module Cowsay
Defined in:
cowsay.crcowsay/abstract_cow.cr
cowsay/cows/beavis.zen.cr
cowsay/cows/bong.cr
cowsay/cows/bud-frogs.cr
cowsay/cows/bunny.cr
cowsay/cows/capybara.cr
cowsay/cows/cheese.cr
cowsay/cows/cow.cr
cowsay/cows/cower.cr
cowsay/cows/daemon.cr
cowsay/cows/dragon-and-cow.cr
cowsay/cows/dragon.cr
cowsay/cows/elephant-in-snake.cr
cowsay/cows/elephant.cr
cowsay/cows/eyes.cr
cowsay/cows/flaming-sheep.cr
cowsay/cows/ghostbusters.cr
cowsay/cows/head-in.cr
cowsay/cows/hellokitty.cr
cowsay/cows/kiss.cr
cowsay/cows/kitty.cr
cowsay/cows/koala.cr
cowsay/cows/kosh.cr
cowsay/cows/luke-koala.cr
cowsay/cows/mech-and-cow.cr
cowsay/cows/meow.cr
cowsay/cows/milk.cr
cowsay/cows/moofasa.cr
cowsay/cows/moose.cr
cowsay/cows/mutilated.cr
cowsay/cows/owl.cr
cowsay/cows/ren.cr
cowsay/cows/satanic.cr
cowsay/cows/sheep.cr
cowsay/cows/skeleton.cr
cowsay/cows/small.cr
cowsay/cows/sodomized.cr
cowsay/cows/stegosaurus.cr
cowsay/cows/stimpy.cr
cowsay/cows/supermilker.cr
cowsay/cows/surgery.cr
cowsay/cows/tanuki.cr
cowsay/cows/telebears.cr
cowsay/cows/three-eyes.cr
cowsay/cows/turkey.cr
cowsay/cows/turtle.cr
cowsay/cows/tux.cr
cowsay/cows/udder.cr
cowsay/cows/vader-koala.cr
cowsay/cows/vader.cr
cowsay/cows/www.cr
cowsay/version.cr
Constant Summary
-
SOURCE =
"https://github.com/kojix2/cowsay.cr"
-
VERSION =
{{ (`shards version /home/runner/work/cowsay.cr/cowsay.cr/src/cowsay`).chomp.stringify }}
Class Method Summary
- .[](character) : Class
- .character_names
-
.say(message, character = "cow", mode = "default", eyes = nil, tongue = nil, wrapcolumn = 40, color = false)
Creates a speech bubble with the given message and renders it with the specified character.
-
.think(message, character = "cow", mode = "default", eyes = nil, tongue = nil, wrapcolumn = 40, color = false)
Creates a thought bubble with the given message and renders it with the specified character.
Class Method Detail
def self.say(message, character = "cow", mode = "default", eyes = nil, tongue = nil, wrapcolumn = 40, color = false)
#
Creates a speech bubble with the given message and renders it with the specified character.
Parameters
- message : The message to display in the speech bubble
- character : The character to use (default: "cow")
- mode : The face mode to use (default: "default")
- eyes : Custom eyes to use (overrides mode)
- tongue : Custom tongue to use (overrides mode)
- wrapcolumn : Column width for text wrapping (default: 40)
- color : Whether to enable colored output (default: false)
Example
puts Cowsay.say("Hello, World!")
puts Cowsay.say("Hello, Tux!", character: "tux", mode: "borg")
puts Cowsay.say("Colorful!", color: true)
def self.think(message, character = "cow", mode = "default", eyes = nil, tongue = nil, wrapcolumn = 40, color = false)
#
Creates a thought bubble with the given message and renders it with the specified character.
Parameters
- message : The message to display in the thought bubble
- character : The character to use (default: "cow")
- mode : The face mode to use (default: "default")
- eyes : Custom eyes to use (overrides mode)
- tongue : Custom tongue to use (overrides mode)
- wrapcolumn : Column width for text wrapping (default: 40)
- color : Whether to enable colored output (default: false)
Example
puts Cowsay.think("I wonder...")
puts Cowsay.think("Hmm...", character: "tux", mode: "paranoid")
puts Cowsay.think("Colorful thoughts!", color: true)