Class: RuboCop::Cop::VariableForce::Branch::Case
- Defined in:
- lib/rubocop/cop/variable_force/branch.rb
Overview
case target when /pattern/ # when_clause else
else_body
end
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#==, #branched?, classes, #control_node, define_predicate, #each_ancestor, #exclusive_with?, #hash, inherited, #may_jump_to_other_branch?, #may_run_incompletely?, #parent, type
Instance Method Details
#always_run? ⇒ Boolean
226 227 228 |
# File 'lib/rubocop/cop/variable_force/branch.rb', line 226 def always_run? target? end |