Class: RedPanda
- Inherits:
-
Object
- Object
- RedPanda
- Defined in:
- lib/redpanda/redpanda.rb
Instance Method Summary collapse
-
#initialize(name, cuteness) ⇒ RedPanda
constructor
A new instance of RedPanda.
- #motto ⇒ Object
- #speak ⇒ Object
Constructor Details
#initialize(name, cuteness) ⇒ RedPanda
Returns a new instance of RedPanda.
3 4 5 6 |
# File 'lib/redpanda/redpanda.rb', line 3 def initialize name, cuteness @name = name @cuteness = cuteness end |
Instance Method Details
#motto ⇒ Object
8 9 10 |
# File 'lib/redpanda/redpanda.rb', line 8 def motto "<3" * @cuteness end |
#speak ⇒ Object
12 13 14 |
# File 'lib/redpanda/redpanda.rb', line 12 def speak puts self.motto end |