Last active
October 19, 2018 23:22
-
-
Save daniel-nelson/3577795fcdaba7061747ed6f4700138c to your computer and use it in GitHub Desktop.
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 ModuleName | |
include OtherModules | |
delegate :some_method, to: :some_object | |
module ClassMethods | |
def class_method | |
end | |
end | |
def self.included(klass) | |
class.extend(ClassMethods) | |
klass.instance_eval do | |
has_many :... | |
before_create :some_method | |
end | |
end | |
def instance_method | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment