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)

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

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)

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

def conditional_clause?
  raise NotImplementedError
end