Class: RuboCop::Cop::Cop::Correction Deprecated
- Inherits:
-
Struct
- Object
- Struct
- RuboCop::Cop::Cop::Correction
- Defined in:
- lib/rubocop/cop/cop.rb
Overview
Deprecated.
Instance Attribute Summary collapse
-
#cop ⇒ Object
Returns the value of attribute cop.
-
#lambda ⇒ Object
Returns the value of attribute lambda.
-
#node ⇒ Object
Returns the value of attribute node.
Instance Method Summary collapse
Instance Attribute Details
#cop ⇒ Object
Returns the value of attribute cop
17 18 19 |
# File 'lib/rubocop/cop/cop.rb', line 17 def cop @cop end |
#lambda ⇒ Object
Returns the value of attribute lambda
17 18 19 |
# File 'lib/rubocop/cop/cop.rb', line 17 def lambda @lambda end |
#node ⇒ Object
Returns the value of attribute node
17 18 19 |
# File 'lib/rubocop/cop/cop.rb', line 17 def node @node end |
Instance Method Details
#call(corrector) ⇒ Object
18 19 20 21 22 |
# 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 |