ruby-changes:19505
From: shyouhei <ko1@a...>
Date: Fri, 13 May 2011 19:27:17 +0900 (JST)
Subject: [ruby-changes:19505] shyouhei:r31545 (trunk): Add #flo_coerce documentation.
shyouhei 2011-05-13 19:27:10 +0900 (Fri, 13 May 2011) New Revision: 31545 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31545 Log: Add #flo_coerce documentation. Signed-off-by: URABE, Shyouhei <shyouhei@r...> Modified files: trunk/numeric.c Index: numeric.c =================================================================== --- numeric.c (revision 31544) +++ numeric.c (revision 31545) @@ -668,7 +668,15 @@ } /* - * MISSING: documentation + * call-seq: + * flt.flo_coerce(numeric) -> array + * + * Returns an array with both <i>aNumeric</i> and <i>flt</i> represented + * as <code>Float</code> objects. + * This is achieved by converting <i>aNumeric</i> to a <code>Float</code>. + * + * 1.2.coerce(3) #=> [3.0, 1.2] + * 2.5.coerce(1.1) #=> [1.1, 2.5] */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/