Sha256: f0d4fe56a7f2fd5101f1a1356591ff17f34314b7784888d2e89609f13ccc5bab
Contents?: true
Size: 1.46 KB
Versions: 12
Compression:
Stored size: 1.46 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name:min_by:@docstringIC:YARD::Docstring"�Returns the object in <i>enum</i> that gives the minimum value from the given block. a = %w(albatross dog horse) a.min_by {|x| x.length } #=> "dog" :@objectu:YARD::StubProxyEnumerable#min_by: @summary0: @all"�Returns the object in <i>enum</i> that gives the minimum value from the given block. a = %w(albatross dog horse) a.min_by {|x| x.length } #=> "dog" @overload min_by @yield [ obj] @return [Object]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Enumerable#min_by;;;IC; " ; u;Enumerable#min_by;0; "#@yield [ obj] @return [Object];[;[o:YARD::Tags::Tag ; 0;0:@types["obj: @text":@tag_name" yieldo; ; 0;0;["Object;";"return;0:@parameters[;0:@signature"min_by;" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[["enum.c0:@namespaceu;Enumerable: @path"Enumerable#min_by;[:@visibility:public:@source"�/* * call-seq: * enum.min_by {| obj| block } => obj * * Returns the object in <i>enum</i> that gives the minimum * value from the given block. * * a = %w(albatross dog horse) * a.min_by {|x| x.length } #=> "dog" */ static VALUE enum_min_by(obj) VALUE obj; { VALUE memo[2]; RETURN_ENUMERATOR(obj, 0, 0); memo[0] = Qundef; memo[1] = Qnil; rb_block_call(obj, id_each, 0, 0, min_by_i, (VALUE)memo); return memo[1]; }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems