Sha256: c6b3ef9cd70e8a543a9b0c18185659786a14495c6fbd0c4287de06b9882717c2

Contents?: true

Size: 1.75 KB

Versions: 16

Compression:

Stored size: 1.75 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:	to_s:@docstringIC:YARD::Docstring";Converts <i>hsh</i> to a string by converting the hash to an array
of <code>[</code> <i>key, value</i> <code>]</code> pairs and then
converting that array to a string using <code>Array#join</code> with
the default separator.

   h = { "c" => 300, "a" => 100, "d" => 400, "c" => 300  }
   h.to_s   #=> "a100c300d400"
:@objectu:YARD::StubProxyHash#to_s:
@summary0:	@all"_Converts <i>hsh</i> to a string by converting the hash to an array
of <code>[</code> <i>key, value</i> <code>]</code> pairs and then
converting that array to a string using <code>Array#join</code> with
the default separator.

   h = { "c" => 300, "a" => 100, "d" => 400, "c" => 300  }
   h.to_s   #=> "a100c300d400"


@overload to_s
  @return [String]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Hash#to_s;;;IC;	"
;
u;Hash#to_s;0;
"@return [String];[;[o:YARD::Tags::Tag
;
0;0:@types["String:
@text":@tag_name"return;0:@parameters[;0:@signature"	to_s;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["hash.c0:@namespaceu;	Hash:
@path"Hash#to_s;[:@visibility:public:@source"-/*
 *  call-seq:
 *     hsh.to_s   => string
 *
 *  Converts <i>hsh</i> to a string by converting the hash to an array
 *  of <code>[</code> <i>key, value</i> <code>]</code> pairs and then
 *  converting that array to a string using <code>Array#join</code> with
 *  the default separator.
 *
 *     h = { "c" => 300, "a" => 100, "d" => 400, "c" => 300  }
 *     h.to_s   #=> "a100c300d400"
 */

static VALUE
rb_hash_to_s(hash)
    VALUE hash;
{
    if (rb_inspecting_p(hash)) return rb_str_new2("{...}");
    return rb_protect_inspect(to_s_hash, hash, 0);
}:@source_type:c

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
pry-doc-0.5.1 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Hash/to_s_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Hash/to_s_i.dat