Module: Formular::Element::Module::Included
- Defined in:
- lib/formular/element/module.rb
Instance Method Summary collapse
-
#included(includer) ⇒ Object
Gets imported into your module and will be run when including it.
Instance Method Details
#included(includer) ⇒ Object
Gets imported into your module and will be run when including it.
19 20 21 22 23 24 25 |
# File 'lib/formular/element/module.rb', line 19 def included(includer) super # first, replay all declaratives like ::property on includer. heritage.(includer) # this normally happens via Heritage::Included. # then, include optional accessors. includer.send(:include, self::InstanceMethods) if const_defined?(:InstanceMethods) end |