Created
July 16, 2017 22:26
-
-
Save Sihui/2c7027ce4be719fdf122d0616fba66bb to your computer and use it in GitHub Desktop.
Design Pattern: Decorator and Waffle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BananaWaffle < WaffleDecorator | |
def topping | |
'banana' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment