Created
January 10, 2019 00:20
-
-
Save carlows/c28e5b7458fea6254695b5637d501339 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 SuperSilliness < SillyBase | |
def m1 (x, y, z) | |
super(1, 2) # Call with 1, 2. | |
super(x, y) # Call with x, y. | |
super x, y # Same as above. | |
super # Call with x, y, z. | |
super() # Call without arguments. | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment