Given a situation such as:
module Extension
def self.included(recipient)
recipient.extend(ModelClassMethods)
end
module ModelClassMethods
def self.msg
puts 'Hi from module'
end
end
end
class B
include Extension
end
Why is B.msg not available?
>> B.msg
NoMethodError: undefined method `msg' for B:Class
from (irb):16
Am I thinking about this the wrong way? It doesn't seem like this should be all that difficult to accomplish.