Sha256: 367748b363e41e6ba5db600d4c868f0624186c5c2d892358f41b78c0af7e5e1c
Contents?: true
Size: 1.89 KB
Versions: 12
Compression:
Stored size: 1.89 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name: find_all:@docstringIC:YARD::Docstring"�Returns an array containing all elements of <i>enum</i> for which <em>block</em> is not <code>false</code> (see also <code>Enumerable#reject</code>). (1..10).find_all {|i| i % 3 == 0 } #=> [3, 6, 9] :@objectu:YARD::StubProxyEnumerable#find_all: @summary0: @all":Returns an array containing all elements of <i>enum</i> for which <em>block</em> is not <code>false</code> (see also <code>Enumerable#reject</code>). (1..10).find_all {|i| i % 3 == 0 } #=> [3, 6, 9] @overload find_all @yield [ obj ] @return [Array] @overload select @yield [ obj ] @return [Array]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Enumerable#find_all;;;IC; " ; u;Enumerable#find_all;0; "#@yield [ obj ] @return [Array];[;[o:YARD::Tags::Tag ; 0;0:@types["obj: @text":@tag_name" yieldo; ; 0;0;[" Array;";"return;0:@parameters[;0:@signature" find_all;" overloado; ; u;Enumerable#find_all;:select;IC; " ; u;Enumerable#find_all;0; "#@yield [ obj ] @return [Array];[;[o; ; 0;0;["obj;";" yieldo; ; 0;0;[" Array;";"return;0;[;0;"select;" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[["enum.c0:@namespaceu;Enumerable: @path"Enumerable#find_all;[:@visibility:public:@source"/* * call-seq: * enum.find_all {| obj | block } => array * enum.select {| obj | block } => array * * Returns an array containing all elements of <i>enum</i> for which * <em>block</em> is not <code>false</code> (see also * <code>Enumerable#reject</code>). * * (1..10).find_all {|i| i % 3 == 0 } #=> [3, 6, 9] * */ static VALUE enum_find_all(obj) VALUE obj; { VALUE ary = rb_ary_new(); RETURN_ENUMERATOR(obj, 0, 0); rb_iterate(rb_each, obj, find_all_i, ary); return ary; }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems