Module: JSONMapper

Defined in:
lib/json_mapper.rb,
lib/json_mapper/parser.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Parser

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
# File 'lib/json_mapper.rb', line 8

def self.included(base)
  base.instance_variable_set("@attributes", {})
  base.instance_variable_set("@json_data", {})
  base.extend ClassMethods
  base.send :include, InstanceMethods
end