class Parser::Source::Map::Index
Attributes
Public Class Methods
Source
# 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
Calls superclass method
Parser::Source::Map::new
Public Instance Methods
Source
# File lib/parser/source/map/index.rb, line 21 def with_operator(operator_l) with { |map| map.update_operator(operator_l) } end
@api private
Protected Instance Methods
Source
# File lib/parser/source/map/index.rb, line 27 def update_operator(operator_l) @operator = operator_l end