mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/complex.rb: provides some obsolate methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9467d7a024
commit
31eacb6ed1
2 changed files with 7 additions and 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>
|
||||
|
||||
|
|
|
@ -16,3 +16,9 @@ class Complex
|
|||
alias image imag
|
||||
|
||||
end
|
||||
|
||||
class Numeric
|
||||
|
||||
def im() Complex(0, self) end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue