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

Included in:
If, Until, UntilPost, While, WhilePost
Defined in:
lib/rubocop/cop/variable_force/branch.rb

Overview

Mix-in module for simple conditional control structures.

Instance Method Summary collapse

Instance Method Details

#always_run?Boolean

Returns:

  • (Boolean)


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

def always_run?
  conditional_clause?
end

#conditional_clause?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def conditional_clause?
  raise NotImplementedError
end