Sha256: e944b2d45ff96dd314332ba869dec0ae3dfac3cc9b00900ef3caa408c46f3acd
Contents?: true
Size: 1.53 KB
Versions: 16
Compression:
Stored size: 1.53 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name: size:@docstringIC:YARD::Docstring"�Returns the number of key-value pairs in the hash. h = { "d" => 100, "a" => 200, "v" => 300, "e" => 400 } h.length #=> 4 h.delete("a") #=> 200 h.length #=> 3 :@objectu:YARD::StubProxyHash#size: @summary0: @all"Returns the number of key-value pairs in the hash. h = { "d" => 100, "a" => 200, "v" => 300, "e" => 400 } h.length #=> 4 h.delete("a") #=> 200 h.length #=> 3 @overload length @return [Fixnum] @overload size @return [Fixnum]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Hash#size;:length;IC; " ; u;Hash#size;0; "@return [Fixnum];[;[o:YARD::Tags::Tag ; 0;0:@types["Fixnum: @text":@tag_name"return;0:@parameters[;0:@signature"length;" overloado; ; u;Hash#size;;;IC; " ; u;Hash#size;0; "@return [Fixnum];[;[o; ; 0;0;["Fixnum;";"return;0;[;0;" size;" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[["hash.c0:@namespaceu; Hash: @path"Hash#size;[:@visibility:public:@source"�/* * call-seq: * hsh.length => fixnum * hsh.size => fixnum * * Returns the number of key-value pairs in the hash. * * h = { "d" => 100, "a" => 200, "v" => 300, "e" => 400 } * h.length #=> 4 * h.delete("a") #=> 200 * h.length #=> 3 */ static VALUE rb_hash_size(hash) VALUE hash; { return INT2FIX(RHASH(hash)->tbl->num_entries); }:@source_type:c
Version data entries
16 entries across 16 versions & 2 rubygems