Created
May 19, 2014 15:28
-
-
Save keithrbennett/c2d8c96cf5abbb947820 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 Base | |
def initialize(thing) | |
puts thing | |
end | |
end | |
class Derived < Base | |
def initialize(a_thing) | |
super() | |
end | |
end | |
Derived.new | |
# print: | |
# ➜ temp ruby s.rb | |
# ArgumentError: wrong number of arguments calling `initialize` (0 for 1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment