I'm looking at a module X which contains two modules called "InstanceMethods
" and "ClassMethods
".
The last definition in module X is this:
def self.included(base)
base.send :include, InstanceMethods
base.send :extend, ClassMethods
end
What does this do?