Skip to content

Instantly share code, notes, and snippets.

@IvanTorresEdge
Created December 26, 2011 12:47
Show Gist options
  • Save IvanTorresEdge/1521081 to your computer and use it in GitHub Desktop.
Save IvanTorresEdge/1521081 to your computer and use it in GitHub Desktop.
Ruby Mixin Template
module MixinSample
def self.included(recipient)
recipient.extend(ClassMethods)
recipient.class_eval do
include InstanceMethods
end
end
module InstanceMethods
end
module ClassMethods
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment