Skip to content

Instantly share code, notes, and snippets.

@oleander
Created February 27, 2011 17:21
Show Gist options
  • Save oleander/846346 to your computer and use it in GitHub Desktop.
Save oleander/846346 to your computer and use it in GitHub Desktop.
class MyClass
def initialize(args)
@other = OtherClass.new
end
def method_missing(method, *args)
@other.send(method, args)
end
end
MyClass.new.random_method(1,2,3)
MyClass.new.random_method
MyClass.new.random_method(1,2,3, "hello")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment