PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Enumerable
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Passes each entry in <em>enum</em> to <em>block</em>. Returns the first for which <em>block</em> is not <tt>false</tt>. If no object matches, calls <em>ifnone</em> and returns its result when it is specified, or returns <tt>nil</tt> - !ruby/struct:SM::Flow::VERB body: " (1..10).detect {|i| i % 5 == 0 and i % 7 == 0 } #=> nil\n (1..100).detect {|i| i % 5 == 0 and i % 7 == 0 } #=> 35\n" full_name: Enumerable#find is_singleton: false name: find params: | enum.detect(ifnone = nil) {| obj | block } => obj or nil enum.find(ifnone = nil) {| obj | block } => obj or nil visibility: public
[-] any%3f-i.yaml
[edit]
[-] reject-i.yaml
[edit]
[-] minmax-i.yaml
[edit]
[-] drop-i.yaml
[edit]
[-] drop_while-i.yaml
[edit]
[-] min-i.yaml
[edit]
[+]
Enumerator
[-] cdesc-Enumerable.yaml
[edit]
[-] one%3f-i.yaml
[edit]
[-] partition-i.yaml
[edit]
[-] enum_slice-i.yaml
[edit]
[-] to_set-i.yaml
[edit]
[-] enum_cons-i.yaml
[edit]
[-] inject-i.yaml
[edit]
[-] find-i.yaml
[edit]
[-] sort_by-i.yaml
[edit]
[-] find_index-i.yaml
[edit]
[-] none%3f-i.yaml
[edit]
[-] group_by-i.yaml
[edit]
[-] enum_with_index-i.yaml
[edit]
[-] take-i.yaml
[edit]
[-] include%3f-i.yaml
[edit]
[-] cycle-i.yaml
[edit]
[-] min_by-i.yaml
[edit]
[-] all%3f-i.yaml
[edit]
[-] reverse_each-i.yaml
[edit]
[-] each_cons-i.yaml
[edit]
[-] grep-i.yaml
[edit]
[-] each_slice-i.yaml
[edit]
[-] map-i.yaml
[edit]
[-] member%3f-i.yaml
[edit]
[-] max-i.yaml
[edit]
[-] entries-i.yaml
[edit]
[-] to_a-i.yaml
[edit]
[-] take_while-i.yaml
[edit]
[-] collect-i.yaml
[edit]
[+]
..
[-] find_all-i.yaml
[edit]
[-] select-i.yaml
[edit]
[-] sort-i.yaml
[edit]
[-] count-i.yaml
[edit]
[-] max_by-i.yaml
[edit]
[-] minmax_by-i.yaml
[edit]
[-] each_with_index-i.yaml
[edit]
[-] detect-i.yaml
[edit]
[-] first-i.yaml
[edit]
[-] zip-i.yaml
[edit]
[-] reduce-i.yaml
[edit]