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.



16
17
18
19
20
# File 'lib/bakery/cake.rb', line 16

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

Instance Method Details

#icingObject



26
27
28
# File 'lib/bakery/cake.rb', line 26

def icing
  @icing
end

#parentObject



30
31
32
# File 'lib/bakery/cake.rb', line 30

def parent
  @parent
end

#rootObject



22
23
24
# File 'lib/bakery/cake.rb', line 22

def root
  @root
end