123456789_123456789_123456789_123456789_123456789_

Class: Parser::Source::Map::Index

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Map
Instance Chain:
self, Map
Inherits: Map
  • Object
Defined in: lib/rubocop/ast/vendor/parser/source/map/index.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(begin_l, end_l, expression_l) ⇒ Index

[ GitHub ]

  
# File 'lib/rubocop/ast/vendor/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

Instance Attribute Details

#begin (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ast/vendor/parser/source/map/index.rb', line 7

attr_reader :begin

#end (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ast/vendor/parser/source/map/index.rb', line 8

attr_reader :end

#operator (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ast/vendor/parser/source/map/index.rb', line 9

attr_reader :operator

Instance Method Details

#with_operator(operator_l)

[ GitHub ]

  
# File 'lib/rubocop/ast/vendor/parser/source/map/index.rb', line 21

def with_operator(operator_l)
  with { |map| map.update_operator(operator_l) }
end