Sha256: 641c30de0b69ed3fcab424a37e9469cb09315440302f849a7820daa258665e1d

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

module Openapi3Parser
  module Node
    module Map
      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 each(&block)
        node_data.each(&block)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openapi3_parser-0.3.0 lib/openapi3_parser/node/map.rb
openapi3_parser-0.2.0 lib/openapi3_parser/node/map.rb
openapi3_parser-0.1.0 lib/openapi3_parser/node/map.rb