Instantly share code, notes, and snippets.

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