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-2.0.0.pre8 lib/parser/source/map/variable.rb
parser-2.0.0.pre7 lib/parser/source/map/variable.rb
parser-2.0.0.pre6 lib/parser/source/map/variable.rb
parser-2.0.0.pre5 lib/parser/source/map/variable.rb
parser-2.0.0.pre4 lib/parser/source/map/variable.rb
parser-2.0.0.pre3 lib/parser/source/map/variable.rb
parser-2.0.0.pre2 lib/parser/source/map/variable.rb
parser-2.0.0.pre1 lib/parser/source/map/variable.rb
parser-2.0.0.beta10 lib/parser/source/map/variable.rb
parser-2.0.0.beta9 lib/parser/source/map/variable.rb
parser-1.4.2 lib/parser/source/map/variable.rb
parser-2.0.0.beta8 lib/parser/source/map/variable.rb
parser-2.0.0.beta7 lib/parser/source/map/variable.rb
parser-2.0.0.beta6 lib/parser/source/map/variable.rb
parser-2.0.0.beta5 lib/parser/source/map/variable.rb
parser-2.0.0.beta4 lib/parser/source/map/variable.rb
parser-1.4.1 lib/parser/source/map/variable.rb
parser-2.0.0.beta3 lib/parser/source/map/variable.rb
parser-2.0.0.beta2 lib/parser/source/map/variable.rb
parser-2.0.0.beta1 lib/parser/source/map/variable.rb