Class: JA2R::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/ja2r/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Parser

Returns a new instance of Parser.



3
4
5
6
# File 'lib/ja2r/parser.rb', line 3

def initialize(hash)
  @hash = hash
  @object_space = []
end

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
# File 'lib/ja2r/parser.rb', line 8

def call
  data = parse_data
  parse_included
  object_space.each do |object|
    assign_relationships object, object_map
  end
  data
end