Class: Parser::Source::Map::Index
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Map
|
|
|
Instance Chain:
self,
Map
|
|
| Inherits: |
Map
|
| Defined in: | lib/rubocop/ast/vendor/parser/source/map/index.rb |
Class Method Summary
- .new(begin_l, end_l, expression_l) ⇒ Index constructor
Instance Attribute Summary
Instance Method Summary
- #with_operator(operator_l) Internal use only
Constructor Details
.new(begin_l, end_l, expression_l) ⇒ Index
# 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