diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-20 22:49:56 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-20 22:49:56 +0000 |
| commit | 53bdd18fad863543aab6ff66c3a629d3b343749a (patch) | |
| tree | 809bc0df44376cf7d9143b6ad480f45ec5b2f250 /lib/complex.rb | |
| parent | 7d263c8547a2dd23c49666e2fb7dff1f3804e836 (diff) | |
| download | ruby-53bdd18fad863543aab6ff66c3a629d3b343749a.tar.gz ruby-53bdd18fad863543aab6ff66c3a629d3b343749a.tar.xz ruby-53bdd18fad863543aab6ff66c3a629d3b343749a.zip | |
* complex.c: an instance method image has been removed and
uses "imag" instead of "image".
* complex.c: two instance method re and im are removed.
* rational.c: follows the above changes.
* include/ruby/ruby.h: ditto.
* gc.c: ditto.
* lib/cmath.rb: ditto.
* lib/mathn.rb: ditto.
* lib/complex.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
| -rw-r--r-- | lib/complex.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/complex.rb b/lib/complex.rb index 70e168e91..c03ee63c3 100644 --- a/lib/complex.rb +++ b/lib/complex.rb @@ -10,3 +10,9 @@ def Complex.generic? (other) other.kind_of?(Float) || other.kind_of?(Rational) end + +class Complex + + alias image imag + +end |
