Created
April 11, 2009 18:43
-
-
Save jschementi/93671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
alias_method :old_inspect, :inspect | |
def inspect | |
"Object inspection: " + old_inspect | |
end | |
end | |
#>>> a = A.new | |
#=> Object inspection: #<A:0x0000076> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment