Sha256: 72842ebd460c75031d611920b0658110ddf00078db0cfac4440736cfbcaf720e

Contents?: true

Size: 542 Bytes

Versions: 70

Compression:

Stored size: 542 Bytes

Contents

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

70 entries across 70 versions & 5 rubygems

Version Path
parser-2.1.6 lib/parser/source/map/constant.rb
parser-2.1.5 lib/parser/source/map/constant.rb
parser-2.1.4 lib/parser/source/map/constant.rb
parser-2.1.3 lib/parser/source/map/constant.rb
parser-2.1.2 lib/parser/source/map/constant.rb
parser-2.1.1 lib/parser/source/map/constant.rb
parser-2.1.0 lib/parser/source/map/constant.rb
parser-2.1.0.pre2 lib/parser/source/map/constant.rb
parser-2.1.0.pre1 lib/parser/source/map/constant.rb
parser-2.0.0 lib/parser/source/map/constant.rb