Skip to content

Instantly share code, notes, and snippets.

@Sihui Sihui/concrete_strategy.rb
Last active Apr 23, 2017

Embed
What would you like to do?
class GrilledChicken
def cook
stuffing = []
stuffing << 'sliced tomato'
stuffing << 'lettuce'
stuffing << 'grilled chicken'
stuffing
end
end
class BeefPatty
def cook
stuffing = []
stuffing << 'cheese'
stuffing << 'grilled beef patty'
stuffing
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.