Parent

Roodi::Checks::ForLoopCheck

Checks to make sure for loops are not being used..

Using a for loop is not idiomatic use of Ruby, and is usually a sign that someone with more experience in a different programming language is trying out Ruby. Use Enumerable.each with a block instead.

Public Instance Methods

evaluate_start(node) click to toggle source
# File lib/roodi/checks/for_loop_check.rb, line 15
def evaluate_start(node)
  add_error "Don't use 'for' loops. Use Enumerable.each instead."
end
interesting_nodes() click to toggle source
# File lib/roodi/checks/for_loop_check.rb, line 11
def interesting_nodes
  [:for]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.