I am looking for examples of parameterized modules.
module PM
class << self
def include(receiver, params)
# generate and include a
# parameterized version of self
# into receiver
# with bits of code generation
end
end
end
module B
PM.include(self, 1, 2, 3)
end
class C
PM.include(self, 1, 2, 3)
end
Do you know of any?