Sha256: fd548e9bf22a60da7b6db889acc00ea8310668f8e8c58976528e0d749760d69b

Contents?: true

Size: 444 Bytes

Versions: 27

Compression:

Stored size: 444 Bytes

Contents

module Parser
  module Source

    class Map::Variable < Map
      attr_reader :name
      attr_reader :operator

      def initialize(name_l, expression_l=name_l)
        @name = name_l

        super(expression_l)
      end

      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

27 entries across 27 versions & 1 rubygems

Version Path
parser-1.4.0 lib/parser/source/map/variable.rb
parser-1.3.4 lib/parser/source/map/variable.rb
parser-1.3.3 lib/parser/source/map/variable.rb
parser-1.3.2 lib/parser/source/map/variable.rb
parser-1.3.1 lib/parser/source/map/variable.rb
parser-1.3.0 lib/parser/source/map/variable.rb
parser-1.2.0 lib/parser/source/map/variable.rb