class RuboCop::Cop::VariableForce::For

for element in collection

loop_body

end

Public Instance Methods

always_run?() click to toggle source
# File lib/rubocop/cop/variable_force/branch.rb, line 243
def always_run?
  element? || collection?
end