Class: CakeLie::Frosting

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

Constant Summary collapse

CAKES =
['shortcake', 'poundcake',
'pineapple upside down cake', 'urinal cake']
COLORS =
['red', 'white', 'blue']

Instance Method Summary collapse

Instance Method Details

#cake_with_colorObject



14
15
16
# File 'lib/cake_lie.rb', line 14

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

#spatulaObject



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

def spatula
  CAKES.sample
end