Skip to content

Instantly share code, notes, and snippets.

@keithrbennett
Created February 16, 2009 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keithrbennett/65440 to your computer and use it in GitHub Desktop.
Save keithrbennett/65440 to your computer and use it in GitHub Desktop.
def all_false(enumerable)
enumerable.each { |e| return false if e }
true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment