Class: Rubycop::Analyzer::Ruby::Constant

Inherits:
Identifier show all
Defined in:
lib/rubycop/analyzer/ruby/constants.rb

Instance Attribute Summary collapse

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 Attribute Details

#namespaceObject

Returns the value of attribute namespace.



5
6
7
# File 'lib/rubycop/analyzer/ruby/constants.rb', line 5

def namespace
  @namespace
end

Instance Method Details

#assignment(rvalue, operator) ⇒ Object



7
8
9
# File 'lib/rubycop/analyzer/ruby/constants.rb', line 7

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