ruby-changes:37360
From: marcandre <ko1@a...>
Date: Fri, 30 Jan 2015 00:57:14 +0900 (JST)
Subject: [ruby-changes:37360] marcandRe: r49441 (trunk): * string.c: [DOC] Specify to_s on subclasses [ci skip]
marcandre 2015-01-30 00:56:58 +0900 (Fri, 30 Jan 2015) New Revision: 49441 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49441 Log: * string.c: [DOC] Specify to_s on subclasses [ci skip] Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 49440) +++ string.c (revision 49441) @@ -4877,7 +4877,9 @@ rb_str_to_f(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L4877 * str.to_s -> str * str.to_str -> str * - * Returns the receiver. + * Returns +self+. + * + * If called on a subclass of String, converts the receiver to a String object. */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/