Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created November 13, 2019 09:59
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 sixtyfive/2ff5adb30d3d240e29a5a9050bea43e4 to your computer and use it in GitHub Desktop.
Save sixtyfive/2ff5adb30d3d240e29a5a9050bea43e4 to your computer and use it in GitHub Desktop.
class Parent
def initialize
respond if respond_to? :respond
end
end
class Child < Parent
def respond
puts "Yes, mommy!"
end
end
child = Child.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment