Created
December 26, 2011 12:47
-
-
Save IvanTorresEdge/1521081 to your computer and use it in GitHub Desktop.
Ruby Mixin Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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