Skip to content

Instantly share code, notes, and snippets.

@LTe
Created January 2, 2012 15:06
Show Gist options
  • Save LTe/1551027 to your computer and use it in GitHub Desktop.
Save LTe/1551027 to your computer and use it in GitHub Desktop.
module MethodModule
def methoda(*args)
return args
end
end
class MyClass
include MethodModule
def methoda(*)
my_args = super
puts my_args
end
end
MyClass.new.methoda("hello") #=> "hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment