Skip to content

Instantly share code, notes, and snippets.

@codesword
Created June 5, 2016 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codesword/9f87c42cb315ee3b58c046b551513620 to your computer and use it in GitHub Desktop.
Save codesword/9f87c42cb315ee3b58c046b551513620 to your computer and use it in GitHub Desktop.
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