Module: Representable::JSON::Hash

Included in:
Representable::JSON
Defined in:
lib/representable/json/hash.rb

Overview

“Lonely Hash” support.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)
  base.class_eval do
    include Representable
    extend ClassMethods
    include Representable::JSON
    include Representable::HashMethods
    representable_attrs.add(:_self, {:hash => true})
  end
end