Class: Argo::Parser

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

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Parser

Returns a new instance of Parser.



6
7
8
# File 'lib/argo/parser.rb', line 6

def initialize(source)
  @source = source
end

Instance Method Details

#rootObject



10
11
12
# File 'lib/argo/parser.rb', line 10

def root
  @root ||= SchemaFactory.new(dereferencer).build(@source)
end