Class: RuboCop::Cop::VariableForce::AssignmentReference Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubocop/cop/variable_force.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nodeObject

Returns the value of attribute node

Returns:

  • the current value of node



68
69
70
# File 'lib/rubocop/cop/variable_force.rb', line 68

def node
  @node
end

Instance Method Details

#assignment?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

API:

  • private



69
70
71
# File 'lib/rubocop/cop/variable_force.rb', line 69

def assignment?
  true
end