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

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Mix-in module for exception handling control structures.

Instance Method Summary collapse

Instance Method Details

#may_jump_to_other_branch?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


282
283
284
# File 'lib/rubocop/cop/variable_force/branch.rb', line 282

def may_jump_to_other_branch?
  main_body?
end

#may_run_incompletely?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


286
287
288
# File 'lib/rubocop/cop/variable_force/branch.rb', line 286

def may_run_incompletely?
  main_body?
end