Created
May 27, 2010 23:59
-
-
Save simi/416545 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
class First | |
def test(arg1, arg2) | |
p arg1 | |
p arg2 | |
end | |
end | |
class Second < First | |
def test(arg1, arg2) | |
super(arg1, arg2) | |
p "super" | |
end | |
end | |
second = Second.new | |
second.test(1, 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment