Skip to content

Instantly share code, notes, and snippets.

@shidel-dev
Last active August 29, 2015 14:07
Show Gist options
  • Save shidel-dev/55a4658676096c8cac31 to your computer and use it in GitHub Desktop.
Save shidel-dev/55a4658676096c8cac31 to your computer and use it in GitHub Desktop.
module Magic
def self.respond_to?(method_sym, include_private = false)
#Logic to decide which methods to respond to.
end
def self.method_missing(m, *args, &block)
#dynamically handle method calls
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment