Skip to content

Instantly share code, notes, and snippets.

@chancancode
Created February 12, 2014 05:21
Show Gist options
  • Save chancancode/2156be31e1b04491cd06 to your computer and use it in GitHub Desktop.
Save chancancode/2156be31e1b04491cd06 to your computer and use it in GitHub Desktop.
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