Created
June 5, 2016 12:12
-
-
Save codesword/9f87c42cb315ee3b58c046b551513620 to your computer and use it in GitHub Desktop.
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 TrainingTeam | |
def train_new_fellow(name) | |
# Trains all new fellow | |
end | |
def completed_initial_training | |
# Returns fellows that has completed training | |
end | |
end | |
class Director < TrainingTeam | |
def train_new_fellow(name) | |
super(fellow) | |
end | |
end | |
director_of_training = Director.new | |
director_of_training.train_new_fellow("Aboki") # => trains aboki for six months | |
director_of_training.completed_initial_training # => returns fellows that have completed the training |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment