Class: Rubycop::Analyzer::Ruby::Identifier

Inherits:
Token
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/tokens.rb

Direct Known Subclasses

Constant, Variable

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



40
41
42
# File 'lib/rubycop/analyzer/ruby/tokens.rb', line 40

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