1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Update are-they-all-true.md

This commit is contained in:
David Winiecki
2016-02-12 12:39:22 -08:00
parent b88c731fa6
commit 5d196cfe02

View File

@@ -3,10 +3,10 @@
There is a method on `Enumerable` that allows you to check against
everything in a collection. This is the `all?` method.
For instance, if you want to check if an array of values are all
true, you can call it without arguments:
truthy, you can call it without arguments:
```ruby
> [true, true, true].all?
> [true, 1, ''].all?
# true
> [true, false, true].all?
# false