Class: Argo::Parser
- Inherits:
-
Object
- Object
- Argo::Parser
- Defined in:
- lib/argo/parser.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ Parser
constructor
A new instance of Parser.
- #root ⇒ Object
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
#root ⇒ Object
10 11 12 |
# File 'lib/argo/parser.rb', line 10 def root @root ||= SchemaFactory.new(dereferencer).build(@source) end |