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)


156
157
158
# File 'lib/rubocop/cop/variable_force/branch.rb', line 156

def always_run?
  conditional_clause?
end

#conditional_clause?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def conditional_clause?
  raise NotImplementedError
end