Created
July 6, 2012 08:21
-
-
Save andys/3058918 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 Parent | |
def add(x,y) | |
x + y | |
end | |
end | |
class Child < Parent | |
def add | |
super | |
end | |
end | |
Child.new.add(1,2) | |
# ArgumentError: wrong number of arguments (2 for 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Child is whinging that you're not giving it enough arguments.