Class: Parser::Source::Map::Variable
| 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/variable.rb |
Class Method Summary
- .new(name_l, expression_l = name_l) ⇒ Variable constructor
Instance Attribute Summary
Instance Method Summary
- #with_operator(operator_l) Internal use only
Constructor Details
.new(name_l, expression_l = name_l) ⇒ Variable
# File 'lib/rubocop/ast/vendor/parser/source/map/variable.rb', line 10
def initialize(name_l, expression_l=name_l) @name = name_l super(expression_l) end
Instance Attribute Details
#name (readonly)
[ GitHub ]# File 'lib/rubocop/ast/vendor/parser/source/map/variable.rb', line 7
attr_reader :name
#operator (readonly)
[ GitHub ]# File 'lib/rubocop/ast/vendor/parser/source/map/variable.rb', line 8
attr_reader :operator
Instance Method Details
#with_operator(operator_l)
[ GitHub ]# File 'lib/rubocop/ast/vendor/parser/source/map/variable.rb', line 19
def with_operator(operator_l) with { |map| map.update_operator(operator_l) } end