From 31eacb6ed129b7483f6f8a74034986cb7ead1836 Mon Sep 17 00:00:00 2001 From: tadf Date: Sat, 20 Sep 2008 22:55:59 +0000 Subject: * lib/complex.rb: provides some obsolate methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/complex.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/complex.rb') diff --git a/lib/complex.rb b/lib/complex.rb index c03ee63c3e..301879143f 100644 --- a/lib/complex.rb +++ b/lib/complex.rb @@ -16,3 +16,9 @@ class Complex alias image imag end + +class Numeric + + def im() Complex(0, self) end + +end -- cgit v1.2.3