module Representable::ClassMethods

Public Instance Methods

inherit_module!(parent) click to toggle source

Gets overridden by Decorator as inheriting representers via include in Decorator means a bit more work (manifesting).

# File lib/representable.rb, line 118
def inherit_module!(parent)
  representable_attrs.inherit!(parent.representable_attrs) # Module just inherits.
end
prepare(represented) click to toggle source
# File lib/representable.rb, line 122
def prepare(represented)
  represented.extend(self)
end