class Parser::Source::Map::Variable

Attributes

name[R]
operator[R]

Public Class Methods

new(name_l, expression_l=name_l) click to toggle source
Calls superclass method Parser::Source::Map::new
# File lib/parser/source/map/variable.rb, line 8
def initialize(name_l, expression_l=name_l)
  @name = name_l

  super(expression_l)
end

Public Instance Methods

with_operator(operator_l) click to toggle source

@api private

# File lib/parser/source/map/variable.rb, line 17
def with_operator(operator_l)
  with { |map| map.update_operator(operator_l) }
end

Protected Instance Methods

update_operator(operator_l) click to toggle source
# File lib/parser/source/map/variable.rb, line 23
def update_operator(operator_l)
  @operator = operator_l
end