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)

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

def may_jump_to_other_branch?
  main_body?
end

#may_run_incompletely?Boolean

Returns:

  • (Boolean)

277
278
279
# File 'lib/rubocop/cop/variable_force/branch.rb', line 277

def may_run_incompletely?
  main_body?
end