Created
November 16, 2009 21:24
-
-
Save santosh79/236329 to your computer and use it in GitHub Desktop.
This file contains 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
#Re-writing a method inside itself can be done in ruby | |
def meth1 | |
def meth1 | |
end | |
puts "in old method" | |
end | |
meth1 #This prints "in old method" | |
meth1 #This does not |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment