--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Passes each element of the collection to the given block. The method returns true if the block never returns false or nil. If the block is not given, Ruby adds an implicit block of {|obj| obj} (that is all? will return true only if none of the collection members are false or nil.)
- !ruby/struct:SM::Flow::VERB
body: " %w{ ant bear cat}.all? {|word| word.length >= 3} #=> true\n %w{ ant bear cat}.all? {|word| word.length >= 4} #=> false\n [ nil, true, 99 ].all? #=> false\n"
full_name: Enumerable#all?
is_singleton: false
name: all?
params: |
enum.all? [{|obj| block } ] => true or false
visibility: public