class PirateCommand
Constants
- VERSION
Public Class Methods
action()
click to toggle source
# File lib/pirate_command.rb, line 9 def self.action dictionaries[:pirate_actions].random end
exclaim()
click to toggle source
# File lib/pirate_command.rb, line 21 def self.exclaim dictionaries[:pirate_exclamations].random end
exclaim!()
click to toggle source
# File lib/pirate_command.rb, line 25 def self.exclaim! "#{self.exclaim}!" end
generate()
click to toggle source
# File lib/pirate_command.rb, line 17 def self.generate "#{self.action} the #{self.thing}" end
thing()
click to toggle source
# File lib/pirate_command.rb, line 13 def self.thing dictionaries[:pirate_things].random end