Sha256: bde843eb6da7194647936263edc9cc49871c157a339d4b3f84f62baa1e923171

Contents?: true

Size: 1.55 KB

Versions: 12

Compression:

Stored size: 1.55 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"String#initialize_copy:EF:@parameters[:@files[[I"
string.c;T0:@current_file_has_commentsF:
@name:initialize_copy:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"­Replaces the contents and taintedness of <i>str</i> with the corresponding
values in <i>other_str</i>.

   s = "hello"         #=> "hello"
   s.replace "world"   #=> "world";F:@objectIu:YARD::StubProxyString#initialize_copy;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;:replace:@types0:@signatureI"replace(other_str);F;IC;";F;Iu;String#initialize_copy;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"String;F;0:	@allI"@return [String];F;[[:other_str0;Iu;String#initialize_copy;F;!I"ßReplaces the contents and taintedness of <i>str</i> with the corresponding
values in <i>other_str</i>.

   s = "hello"         #=> "hello"
   s.replace "world"   #=> "world"


@overload replace(other_str)
  @return [String];F:@namespaceIu;String;F:@docstring_extra0:@sourceI"º/*
 *  call-seq:
 *     str.replace(other_str)   -> str
 *
 *  Replaces the contents and taintedness of <i>str</i> with the corresponding
 *  values in <i>other_str</i>.
 *
 *     s = "hello"         #=> "hello"
 *     s.replace "world"   #=> "world"
 */

VALUE
rb_str_replace(VALUE str, VALUE str2)
{
    str_modifiable(str);
    if (str == str2) return str;

    StringValue(str2);
    str_discard(str);
    return str_replace(str, str2);
};F

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/String/initialize_copy_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/String/initialize_copy_i.dat