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).
118 119 120 |
# File 'lib/representable.rb', line 118 def inherit_module!(parent) representable_attrs.inherit!(parent.representable_attrs) # Module just inherits. end |
#prepare(represented) ⇒ Object
122 123 124 |
# File 'lib/representable.rb', line 122 def prepare(represented) represented.extend(self) end |