Skip to content

Instantly share code, notes, and snippets.

@codesword
Created June 5, 2016 12:14
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/5dcd9f9f48b0a63e51723068c55cec3f to your computer and use it in GitHub Desktop.
Save codesword/5dcd9f9f48b0a63e51723068c55cec3f to your computer and use it in GitHub Desktop.
require 'forwardable'
class Director
attr_reader :training_team, :fellows
def_delegator :training_team, :train_new_fellow, :train_new_fellow
def initialize
@training_team = TrainingTeam.new
end
end
director_of_training = Director.new
director_of_training.train_new_fellow("Aboki") # => trains Aboki for six months
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment