Method: Representable::JSON::Hash.included

Defined in:
lib/representable/json/hash.rb

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/representable/json/hash.rb', line 6

def self.included(base)
  base.class_eval do
    include Representable
    extend ClassMethods
    include Representable::JSON
    include Representable::HashMethods
    property(:_self, hash: true)
  end
end