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)

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

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)

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

def may_run_incompletely?
  main_body?
end