Sha256: 0c3c0eba7305ad96a1f73a0211e59e014be1c04d0f6a148b44f5f1dc693c89a0
Contents?: true
Size: 1.73 KB
Versions: 12
Compression:
Stored size: 1.73 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name:drop_while:@docstringIC:YARD::Docstring"�Drops elements up to, but not including, the first element for which the block returns nil or false and returns an array containing the remaining elements. a = [1, 2, 3, 4, 5, 0] a.drop_while {|i| i < 3 } # => [3, 4, 5, 0] :@objectu:YARD::StubProxyEnumerable#drop_while: @summary0: @all" Drops elements up to, but not including, the first element for which the block returns nil or false and returns an array containing the remaining elements. a = [1, 2, 3, 4, 5, 0] a.drop_while {|i| i < 3 } # => [3, 4, 5, 0] @overload drop_while @yield [arr] @return [Array]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Enumerable#drop_while;;;IC; " ; u;Enumerable#drop_while;0; "!@yield [arr] @return [Array];[;[o:YARD::Tags::Tag ; 0;0:@types["arr: @text":@tag_name" yieldo; ; 0;0;[" Array;";"return;0:@parameters[;0:@signature"drop_while;" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[["enum.c0:@namespaceu;Enumerable: @path"Enumerable#drop_while;[:@visibility:public:@source"=/* * call-seq: * enum.drop_while {|arr| block } => array * * Drops elements up to, but not including, the first element for * which the block returns nil or false and returns an array * containing the remaining elements. * * a = [1, 2, 3, 4, 5, 0] * a.drop_while {|i| i < 3 } # => [3, 4, 5, 0] * */ static VALUE enum_drop_while(obj) VALUE obj; { VALUE args[2]; RETURN_ENUMERATOR(obj, 0, 0); args[0] = rb_ary_new(); args[1] = Qfalse; rb_block_call(obj, id_each, 0, 0, drop_while_i, (VALUE)args); return args[0]; }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems