Module: Pa::Util::Concern
Instance Method Summary collapse
Instance Method Details
#included(base) ⇒ Object
4 5 6 7 |
# File 'lib/pa/util.rb', line 4 def included(base) base.extend const_get(:ClassMethods) if const_defined?(:ClassMethods) base.send :include, const_get(:InstanceMethods) if const_defined?(:InstanceMethods) end |