123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::Cop::Cop::Correction Deprecated

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/rubocop/cop/cop.rb

Overview

Deprecated.

Instance Attribute Summary

  • #cop rw deprecated Deprecated.
  • #lambda rw deprecated Deprecated.
  • #node rw deprecated Deprecated.

Instance Method Summary

Instance Attribute Details

#cop (rw)

[ GitHub ]

  
# File 'lib/rubocop/cop/cop.rb', line 17

Correction = Struct.new(:lambda, :node, :cop)

#lambda (rw)

[ GitHub ]

  
# File 'lib/rubocop/cop/cop.rb', line 17

Correction = Struct.new(:lambda, :node, :cop)

#node (rw)

[ GitHub ]

  
# File 'lib/rubocop/cop/cop.rb', line 17

Correction = Struct.new(:lambda, :node, :cop)

Instance Method Details

#call(corrector)

[ GitHub ]

  
# File 'lib/rubocop/cop/cop.rb', line 18

def call(corrector)
  lambda.call(corrector)
rescue StandardError => e
  raise ErrorWithAnalyzedFileLocation.new(cause: e, node: node, cop: cop)
end