Sha256: 7543c80d5520a91420a8443ff8c47e7e1371e9e3584851ca5afc39035de0b4a4
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module Openapi3Parser module Node module Object include Enumerable attr_reader :node_data, :node_context def initialize(data, context) @node_data = data @node_context = context end def [](value) node_data[value] end def extension(value) node_data["x-#{value}"] end def each(&block) node_data.each(&block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openapi3_parser-0.2.0 | lib/openapi3_parser/node/object.rb |
openapi3_parser-0.1.0 | lib/openapi3_parser/node/object.rb |