Sha256: 8887161ce7754f19f1c24119e9c5b5d3409da683c2f3d76cd439c9b37edcfa88

Contents?: true

Size: 573 Bytes

Versions: 7017

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

module Parser
  module Source

    class Map::Constant < Map
      attr_reader :double_colon
      attr_reader :name
      attr_reader :operator

      def initialize(double_colon, name, expression)
        @double_colon, @name = double_colon, name

        super(expression)
      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,017 entries across 6,994 versions & 51 rubygems

Version Path
cybrid_api_organization_ruby-0.123.162 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.162 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.161 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_organization_ruby-0.123.161 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_organization_ruby-0.123.160 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.160 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_organization_ruby-0.123.159 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.159 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.158 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_organization_ruby-0.123.158 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.157 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_organization_ruby-0.123.157 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_organization_ruby-0.123.156 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.156 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
messente_api-2.3.0 vendor/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_bank_ruby-0.123.153 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.153 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_organization_ruby-0.123.153 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_bank_ruby-0.123.152 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb
cybrid_api_id_ruby-0.123.152 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb