Class: JA2R::Parser
- Inherits:
-
Object
- Object
- JA2R::Parser
- Defined in:
- lib/ja2r/parser.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(hash) ⇒ Parser
constructor
A new instance of Parser.
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
#call ⇒ Object
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 |