Class: Bakery::Cake

Inherits:
Object show all
Defined in:
lib/bakery/cake.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ Cake

Returns a new instance of Cake.



14
15
16
17
18
# File 'lib/bakery/cake.rb', line 14

def initialize parent
  @parent = parent
  @root = Dir.pwd
  @icing = Hash.new
end

Instance Method Details

#icingObject



24
25
26
# File 'lib/bakery/cake.rb', line 24

def icing
  @icing
end

#parentObject



28
29
30
# File 'lib/bakery/cake.rb', line 28

def parent
  @parent
end

#rootObject



20
21
22
# File 'lib/bakery/cake.rb', line 20

def root
  @root
end