Skip to content

Instantly share code, notes, and snippets.

@Sihui Sihui/w_w_d.rb
Created Jul 16, 2017

Embed
What would you like to do?
Design Pattern: Decorator and Waffle
class StrawberryWaffle < WaffleDecorator
def topping
'strawberries'
end
end
class BlueberryWaffle < WaffleDecorator
def topping
'blueberries'
end
end
class BlackberryWaffle < WaffleDecorator
def topping
'blackberries'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.