Class: Rubycop::Analyzer::Ruby::InstanceVariable

Inherits:
Variable show all
Defined in:
lib/rubycop/analyzer/ruby/variables.rb

Instance Attribute Summary

Attributes inherited from Token

#position, #token

Instance Method Summary collapse

Methods inherited from Token

#initialize

Methods inherited from Node

#accept

Constructor Details

This class inherits a constructor from Rubycop::Analyzer::Ruby::Token

Instance Method Details

#assignment(rvalue, operator) ⇒ Object



20
21
22
# File 'lib/rubycop/analyzer/ruby/variables.rb', line 20

def assignment(rvalue, operator)
  InstanceVariableAssignment.new(self, rvalue, operator)
end