summaryrefslogtreecommitdiff
path: root/lib/complex.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-20 22:49:56 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-20 22:49:56 +0000
commit9467d7a02430cbe76368148fe8097d7d029e6def (patch)
tree809bc0df44376cf7d9143b6ad480f45ec5b2f250 /lib/complex.rb
parent67526f30909c255d164d5c14d944eeda77d8d92a (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
-rw-r--r--lib/complex.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/complex.rb b/lib/complex.rb
index 70e168e..c03ee63 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