Module: RuboCop::Cop::VariableForce::Branch::SimpleConditional Private

Included in:
If, Until, UntilPost, While, WhilePost
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 simple conditional control structures.

Instance Method Summary collapse

Instance Method Details

#always_run?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)


150
151
152
# File 'lib/rubocop/cop/variable_force/branch.rb', line 150

def always_run?
  conditional_clause?
end

#conditional_clause?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)

Raises:

  • (NotImplementedError)


146
147
148
# File 'lib/rubocop/cop/variable_force/branch.rb', line 146

def conditional_clause?
  raise NotImplementedError
end