Class: PirateCommand
- Inherits:
-
Forgery
- Object
- Forgery
- PirateCommand
- Defined in:
- lib/pirate_command.rb
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
Class Method Details
.action ⇒ Object
9 10 11 |
# File 'lib/pirate_command.rb', line 9 def self.action dictionaries[:pirate_actions].random end |
.exclaim ⇒ Object
21 22 23 |
# File 'lib/pirate_command.rb', line 21 def self.exclaim dictionaries[:pirate_exclamations].random end |
.exclaim! ⇒ Object
25 26 27 |
# File 'lib/pirate_command.rb', line 25 def self.exclaim! "#{self.exclaim}!" end |
.generate ⇒ Object
17 18 19 |
# File 'lib/pirate_command.rb', line 17 def self.generate "#{self.action} the #{self.thing}" end |
.thing ⇒ Object
13 14 15 |
# File 'lib/pirate_command.rb', line 13 def self.thing dictionaries[:pirate_things].random end |