Class: Degica::ChuckNorris
- Defined in:
- lib/degica/objects/people/chuck_norris.rb
Instance Attribute Summary
Attributes included from Collectable
Instance Method Summary collapse
Methods inherited from Person
#actions, #describe, #give, #initialize, #inspect, #talk
Methods inherited from Object
#actions, #describe, #initialize, #prompt
Methods included from Actionable
#actions, #describe, #do, #prompt
Constructor Details
This class inherits a constructor from Degica::Person
Instance Method Details
#description ⇒ Object
11 12 13 14 15 16 |
# File 'lib/degica/objects/people/chuck_norris.rb', line 11 def description desc = [] desc << "He's flexing his muscles." desc << "He has a ruby." if holding?(:ruby) desc end |
#name ⇒ Object
3 4 5 |
# File 'lib/degica/objects/people/chuck_norris.rb', line 3 def name :chuck end |
#quote ⇒ Object
7 8 9 |
# File 'lib/degica/objects/people/chuck_norris.rb', line 7 def quote Faker::ChuckNorris.fact end |