This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

all?

        # Array.all?

(from ruby core)
---
    array.all? -> true or false
    array.all? {|element| ... } -> true or false
    array.all?(obj) -> true or false

---

Returns `true` if all elements of `self` meet a given criterion.

With no block given and no argument, returns `true` if `self` contains
only truthy elements, `false` otherwise:
    [0, 1, :foo].all? # => true
    [0, nil, 2].all? # => false
    [].all? # => true

With a block given and no argument, calls the block with each element in
`self`; returns `true` if the block returns only truthy values, `false`
otherwise:
    [0, 1, 2].all? { |element| element < 3 } # => true
    [0, 1, 2].all? { |element| element < 2 } # => false

If argument `obj` is given, returns `true` if `obj.===` every element,
`false` otherwise:
    ['food', 'fool', 'foot'].all?(/foo/) # => true
    ['food', 'drink'].all?(/bar/) # => false
    [].all?(/foo/) # => true
    [0, 0, 0].all?(0) # => true
    [0, 1, 2].all?(1) # => false

Related: Enumerable#all?



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.