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).
97 98 99 |
# File 'lib/representable.rb', line 97 def inherit_module!(parent) representable_attrs.inherit!(parent.representable_attrs) # Module just inherits. end |
#prepare(represented) ⇒ Object
101 102 103 |
# File 'lib/representable.rb', line 101 def prepare(represented) represented.extend(self) end |