Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created October 10, 2009 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baroquebobcat/207200 to your computer and use it in GitHub Desktop.
Save baroquebobcat/207200 to your computer and use it in GitHub Desktop.
class SomethingAwesome
include Singleton
def method_missing method,*args
instance.send method,*args
end
alias :old_respond_to? :respond_to?
def respond_to? method
instance.respond_to?(method) || old_respond_to?(method)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment