Class: RubyCop::Ruby::Constant

Inherits:
Identifier show all
Defined in:
lib/ruby_cop/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::Ruby::Token

Instance Attribute Details

#namespaceObject

Returns the value of attribute namespace.



4
5
6
# File 'lib/ruby_cop/ruby/constants.rb', line 4

def namespace
  @namespace
end

Instance Method Details

#assignment(rvalue, operator) ⇒ Object



6
7
8
# File 'lib/ruby_cop/ruby/constants.rb', line 6

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