Class: RuboCop::Cop::VariableForce::Branch::Rescue

Inherits:
Base
  • Object
show all
Includes:
ExceptionHandler
Defined in:
lib/rubocop/cop/variable_force/branch.rb

Overview

begin

  main_body
rescue StandardError => error # rescue_clause
else
  else_body
end

Instance Attribute Summary

Attributes inherited from Base

#child_node, #scope

Instance Method Summary collapse

Methods included from ExceptionHandler

#may_jump_to_other_branch?, #may_run_incompletely?

Methods inherited from Base

#==, #branched?, classes, #control_node, define_predicate, #each_ancestor, #exclusive_with?, #hash, inherited, #may_jump_to_other_branch?, #may_run_incompletely?, #parent, type

Instance Method Details

#always_run?Boolean

Returns:

  • (Boolean)


291
292
293
# File 'lib/rubocop/cop/variable_force/branch.rb', line 291

def always_run?
  false
end