Skip to content

Instantly share code, notes, and snippets.

@sandro
Created April 23, 2009 13:35
Show Gist options
  • Save sandro/100502 to your computer and use it in GitHub Desktop.
Save sandro/100502 to your computer and use it in GitHub Desktop.
class A
def inspect
'hi'
end
end
a = A.new
puts a.inspect
puts Object.instance_method(:inspect).bind(a).call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment