-
-
Save chancancode/2156be31e1b04491cd06 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
module Prepended | |
def initialize(some_arg) | |
# Task: try to call super here (with some_arg) and not end up with ArgumentError: wrong number of arguments (1 for 0) | |
end | |
end | |
class A | |
prepend Prepended | |
def initialize(some_arg) | |
# This should be called | |
end | |
end | |
class B | |
prepend Prepended | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment