Sha256: 5219fe9ec751cd5c27a579fe0545afb23378e65be9642ca8c2d743690d92c682

Contents?: true

Size: 1.5 KB

Versions: 12

Compression:

Stored size: 1.5 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"String#replace:EF:@parameters[:@files[[I"
string.c;T0:@current_file_has_commentsF:
@name:replace:@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#replace;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"replace(other_str);F;IC;";F;Iu;String#replace;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"String;F;0:	@allI"@return [String];F;[[:other_str0;Iu;String#replace;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/replace_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/String/replace_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/String/replace_i.dat