Skip to content

Instantly share code, notes, and snippets.

@danielcooper
Created October 22, 2012 16:42
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 danielcooper/3932429 to your computer and use it in GitHub Desktop.
Save danielcooper/3932429 to your computer and use it in GitHub Desktop.
class Code
def initialize(person)
@person = person
end
def make_bugs
"#{@person.name} does some typing"
end
end
class Developer < Employee
def make_bugs
Code.new(self).make_bugs
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment