Method: Openapi3Parser::Context#initialize
- Defined in:
- lib/openapi3_parser/context.rb
#initialize(input, document_location:, source_location: nil, referenced_by: nil, is_reference: false) ⇒ Context
Returns a new instance of Context.
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/openapi3_parser/context.rb', line 77 def initialize(input, document_location:, source_location: nil, referenced_by: nil, is_reference: false) @input = input @document_location = document_location @source_location = source_location || document_location @referenced_by = referenced_by @is_reference = is_reference end |