Created
September 22, 2020 10:01
-
-
Save mostlyobvious/ee7637c3a0ecea970bf94ffdee6681d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Xyz | |
def self.some_module | |
Module.new do | |
# ... | |
end | |
end | |
def self.included(klass) | |
# klass.include(some_module) | |
klass.include(self) | |
end | |
end | |
class Abc | |
include Xyz | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment