diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-20 22:55:59 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-20 22:55:59 +0000 |
| commit | 3a7ae807b6ad3bf63fb24cbce5000fe71b2c9282 (patch) | |
| tree | 67f8feeae29e2940d4763306c61e0c217174fa7d | |
| parent | 53bdd18fad863543aab6ff66c3a629d3b343749a (diff) | |
| download | ruby-3a7ae807b6ad3bf63fb24cbce5000fe71b2c9282.tar.gz ruby-3a7ae807b6ad3bf63fb24cbce5000fe71b2c9282.tar.xz ruby-3a7ae807b6ad3bf63fb24cbce5000fe71b2c9282.zip | |
* lib/complex.rb: provides some obsolate methods.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | lib/complex.rb | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -15,7 +15,7 @@ Sun Sep 21 07:43:16 2008 Tadayoshi Funaba <tadf@dotrb.org> * 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@ruby-lang.org> diff --git a/lib/complex.rb b/lib/complex.rb index c03ee63c3..301879143 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 |
