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



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

def always_run?
  conditional_clause?
end

#conditional_clause?Boolean

Raises:

  • (NotImplementedError)


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

def conditional_clause?
  raise NotImplementedError
end