Created
November 26, 2019 04:41
-
-
Save vesh95/5532f91f4a880afd89d22a21a7ecfda3 to your computer and use it in GitHub Desktop.
Ruby module 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 Name | |
def self.included(base) | |
base.extend ClassMethods | |
base.send :include, InstanceMethods | |
end | |
module ClassMethods | |
end | |
module InstanceMethods | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment