Class: BeardedOctoHipster
- Inherits:
-
Object
- Object
- BeardedOctoHipster
- Defined in:
- lib/bearded-octo-hipster.rb
Instance Method Summary collapse
- #a_method ⇒ Object
-
#initialize(banana = :fruit) ⇒ BeardedOctoHipster
constructor
A new instance of BeardedOctoHipster.
- #name ⇒ Object
Constructor Details
#initialize(banana = :fruit) ⇒ BeardedOctoHipster
Returns a new instance of BeardedOctoHipster.
2 3 4 |
# File 'lib/bearded-octo-hipster.rb', line 2 def initialize(banana=:fruit) "what is banana? it is #{banana}." end |
Instance Method Details
#a_method ⇒ Object
11 12 13 14 |
# File 'lib/bearded-octo-hipster.rb', line 11 def a_method some_things = ["bob", "mike", "fart"] some_things.pop end |
#name ⇒ Object
6 7 8 |
# File 'lib/bearded-octo-hipster.rb', line 6 def name "BeardedOctoHipster" end |