Class: BeardedOctoHipster

Inherits:
Object
  • Object
show all
Defined in:
lib/bearded-octo-hipster.rb

Instance Method Summary collapse

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_methodObject



11
12
13
14
# File 'lib/bearded-octo-hipster.rb', line 11

def a_method
  some_things = ["bob", "mike", "fart"]
  some_things.pop
end

#nameObject



6
7
8
# File 'lib/bearded-octo-hipster.rb', line 6

def name
  "BeardedOctoHipster"
end