123456789_123456789_123456789_123456789_123456789_

Class: Parser::Source::Map::Variable

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/variable.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(name_l, expression_l = name_l) ⇒ Variable

[ GitHub ]

  
# 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