Module: RuboCop::Cop::VariableForce::Branch::ExceptionHandler

Included in:
Ensure, Rescue
Defined in:
lib/rubocop/cop/variable_force/branch.rb

Overview

Mix-in module for exception handling control structures.

Instance Method Summary collapse

Instance Method Details

#may_jump_to_other_branch?Boolean

Returns:

  • (Boolean)


269
270
271
# File 'lib/rubocop/cop/variable_force/branch.rb', line 269

def may_jump_to_other_branch?
  main_body?
end

#may_run_incompletely?Boolean

Returns:

  • (Boolean)


273
274
275
# File 'lib/rubocop/cop/variable_force/branch.rb', line 273

def may_run_incompletely?
  main_body?
end