Class: CakeLie::Frosting

Inherits:
Object
  • Object
show all
Defined in:
lib/cake_lie.rb

Constant Summary collapse

CAKES =
['shortcake', 'poundcake', 'carrotcake', 'urinal cake']
COLORS =
['red', 'white', 'blue']

Instance Method Summary collapse

Instance Method Details

#cake_with_colorObject



11
12
13
# File 'lib/cake_lie.rb', line 11

def cake_with_color
	"A #{COLORS.sample} #{spatula}"
end

#spatulaObject



7
8
9
# File 'lib/cake_lie.rb', line 7

def spatula
	CAKES.sample
end