Skip to content

Instantly share code, notes, and snippets.

@bemurphy
Created October 30, 2009 20:57
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 bemurphy/222724 to your computer and use it in GitHub Desktop.
Save bemurphy/222724 to your computer and use it in GitHub Desktop.
class FooTwo
def bar
puts "bar"
end
def cap_bar
def bar
puts "BAR!!!"
end
end
end
foo_two = FooTwo.new
foo_two.bar # outputs "bar"
foo_two.cap_bar
foo_two.bar # outputs "BAR!!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment