Method: Representable.included

Defined in:
lib/representable.rb

.included(base) ⇒ Object



21
22
23
24
25
26
27
28
29
30
# File 'lib/representable.rb', line 21

def self.included(base)
  base.class_eval do
    extend Declarative
    # make Representable horizontally and vertically inheritable.
    extend ModuleExtensions, ::Declarative::Heritage::Inherited, ::Declarative::Heritage::Included
    extend ClassMethods
    extend ForCollection
    extend Represent
  end
end