Sha256: a72e5a3651da8f713a5c7a49be545f59af09719ebc1950a7e7da1dd39500d8e9

Contents?: true

Size: 574 Bytes

Versions: 7016

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module Parser
  module Source

    class Map::Index < Map
      attr_reader :begin
      attr_reader :end
      attr_reader :operator

      def initialize(begin_l, end_l, expression_l)
        @begin, @end = begin_l, end_l
        @operator = nil

        super(expression_l)
      end

      ##
      # @api private
      #
      def with_operator(operator_l)
        with { |map| map.update_operator(operator_l) }
      end

      protected

      def update_operator(operator_l)
        @operator = operator_l
      end
    end

  end
end

Version data entries

7,016 entries across 6,993 versions & 51 rubygems

Version Path
primary_connect_proto-0.0.5 vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-client-0.0.1.alpha27 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-client-0.0.1.alpha24 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
primary_connect_proto-0.0.4 vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
primary_connect_proto-0.0.3 vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-client-0.0.1.alpha23 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
plaid-14.7.0 vendor/bundle/ruby/2.6.0/gems/parser-2.7.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.8.0.alpha2 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-client-0.0.1.alpha21 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-keto-client-0.7.0.alpha1 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-keto-client-0.7.0.alpha0 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.7.6.alpha7 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.7.6.alpha6 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.7.6.alpha5 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.7.6.alpha4 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.7.6.alpha3 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.7.6.alpha1 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
ory-kratos-client-0.7.5.alpha2 vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
mx-platform-ruby-0.4.0 vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb
mx-platform-ruby-0.3.2 vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb