Module: Tr8n::Extender

Included in:
ActiveDumper
Defined in:
lib/tr8n/extender.rb

Instance Method Summary collapse

Instance Method Details

#extended(mod) ⇒ Object



26
27
28
29
# File 'lib/tr8n/extender.rb', line 26

def extended(mod)
  mod.send(:extend,  self::ClassMethods)
  mod.send(:include, self::InstanceMethods)
end

#included(mod) ⇒ Object



31
32
33
34
# File 'lib/tr8n/extender.rb', line 31

def included(mod)
  mod.send(:extend,  self::ClassMethods)
  mod.send(:include, self::InstanceMethods)
end