Class: Degica::ChuckNorris

Inherits:
Person show all
Defined in:
lib/degica/objects/people/chuck_norris.rb

Instance Attribute Summary

Attributes included from Collectable

#collection

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

#descriptionObject



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

#nameObject



3
4
5
# File 'lib/degica/objects/people/chuck_norris.rb', line 3

def name
  :chuck
end

#quoteObject



7
8
9
# File 'lib/degica/objects/people/chuck_norris.rb', line 7

def quote
  Faker::ChuckNorris.fact
end