Created
October 23, 2017 15:29
-
-
Save alfie-max/98ae9aeb8bee273b6346e3414a24b7b5 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 Foo | |
def self.included(base) | |
base.class_eval do | |
def self.method_injected_by_foo | |
... | |
end | |
end | |
end | |
end | |
module Bar | |
include Foo | |
def self.included(base) | |
base.method_injected_by_foo | |
end | |
end | |
class Host | |
include Bar | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment