ruby-changes:7919
From: tadf <ko1@a...>
Date: Sun, 21 Sep 2008 07:56:21 +0900 (JST)
Subject: [ruby-changes:7919] Ruby:r19440 (trunk): * lib/complex.rb: provides some obsolate methods.
tadf 2008-09-21 07:55:59 +0900 (Sun, 21 Sep 2008) New Revision: 19440 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19440 Log: * lib/complex.rb: provides some obsolate methods. Modified files: trunk/ChangeLog trunk/lib/complex.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 19439) +++ ChangeLog (revision 19440) @@ -15,7 +15,7 @@ * lib/mathn.rb: ditto. - * lib/complex.rb: ditto. + * lib/complex.rb: ditto. and provides some obsolate methods. Sun Sep 21 02:48:45 2008 NARUSE, Yui <naruse@r...> Index: lib/complex.rb =================================================================== --- lib/complex.rb (revision 19439) +++ lib/complex.rb (revision 19440) @@ -16,3 +16,9 @@ alias image imag end + +class Numeric + + def im() Complex(0, self) end + +end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/