Module: Representable::ClassMethods
- Defined in:
- lib/representable.rb
Instance Method Summary collapse
-
#inherit_module!(parent) ⇒ Object
Gets overridden by Decorator as inheriting representers via include in Decorator means a bit more work (manifesting).
- #prepare(represented) ⇒ Object
Instance Method Details
#inherit_module!(parent) ⇒ Object
Gets overridden by Decorator as inheriting representers via include in Decorator means a bit more work (manifesting).
110 111 112 |
# File 'lib/representable.rb', line 110 def inherit_module!(parent) representable_attrs.inherit!(parent.representable_attrs) # Module just inherits. end |
#prepare(represented) ⇒ Object
114 115 116 |
# File 'lib/representable.rb', line 114 def prepare(represented) represented.extend(self) end |