Class: RuboCop::Cop::VariableForce::Branch::If Private
- Includes:
- SimpleConditional
- Defined in:
- lib/rubocop/cop/variable_force/branch.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
if conditional_clause
truthy_body
else
falsey_body
end
unless conditional_clause
falsey_body
else
truthy_body
end
Instance Attribute Summary
Attributes inherited from Base
Method Summary
Methods included from SimpleConditional
#always_run?, #conditional_clause?
Methods inherited from Base
#==, #always_run?, #branched?, classes, #control_node, define_predicate, #each_ancestor, #exclusive_with?, #hash, inherited, #may_jump_to_other_branch?, #may_run_incompletely?, #parent, type