Skip to content

Instantly share code, notes, and snippets.

@JoshMcKin
Created November 17, 2010 20:10
Show Gist options
  • Save JoshMcKin/703979 to your computer and use it in GitHub Desktop.
Save JoshMcKin/703979 to your computer and use it in GitHub Desktop.
inheritance
class MyClass1
def working
puts "working"
end
def use_worker
working
end
end
class MyClass2 < MyClass1
def working
puts "nope"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment