class Parser::Source::Map::Send

Attributes

begin[R]
dot[R]
end[R]
operator[R]
selector[R]

Public Class Methods

new(dot_l, selector_l, begin_l, end_l, expression_l) click to toggle source
Calls superclass method Parser::Source::Map::new
# File lib/parser/source/map/send.rb, line 11
def initialize(dot_l, selector_l, begin_l, end_l, expression_l)
  @dot         = dot_l
  @selector    = selector_l
  @begin, @end = begin_l, end_l

  super(expression_l)
end

Public Instance Methods

with_operator(operator_l) click to toggle source

@api private

# File lib/parser/source/map/send.rb, line 22
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/send.rb, line 28
def update_operator(operator_l)
  @operator = operator_l
end