class Parser::Source::Map::Index

Attributes

begin[R]
end[R]
operator[R]

Public Class Methods

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

  super(expression_l)
end

Public Instance Methods

with_operator(operator_l) click to toggle source

@api private

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