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).
111 112 113 |
# File 'lib/representable.rb', line 111 def inherit_module!(parent) representable_attrs.inherit!(parent.representable_attrs) # Module just inherits. end |
#prepare(represented) ⇒ Object
115 116 117 |
# File 'lib/representable.rb', line 115 def prepare(represented) represented.extend(self) end |