Update doc to make more sense

This commit is contained in:
David Heinemeier Hansson 2008-11-19 12:19:11 +01:00
parent 291d199de1
commit 70babd4ebb

@ -107,7 +107,7 @@ def many?(&block)
# Returns true if none of the elements match the given block.
#
# success = responses.none? {|r| r.status / 100 == 3 }
# success = responses.none? {|r| r.status / 100 == 5 }
#
def none?(&block)
return true if !block_given? || blank?