Skip to content

Instantly share code, notes, and snippets.

@jherdman
Created January 19, 2009 04:47
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 jherdman/48874 to your computer and use it in GitHub Desktop.
Save jherdman/48874 to your computer and use it in GitHub Desktop.
# This is lifted from TextMate's Ruby snippets. It's kind of handy and comes up now and then.
module
module ClassMethods
end
module InstanceMethods
end
def self.included(receiver)
receiver.extend ClassMethods
receiver.send :include, InstanceMethods
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment