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

none?

        # Array.none?

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

---

Returns `true` if no element of `self` meet a given criterion.

With no block given and no argument, returns `true` if `self` has no
truthy elements, `false` otherwise:
    [nil, false].none? # => true
    [nil, 0, false].none? # => false
    [].none? # => true

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

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

Related: Enumerable#none?



      

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.