diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-25 13:57:01 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-25 13:57:01 +0000 |
| commit | 8969c2a04a2750026f99f8d0e314d184eed80676 (patch) | |
| tree | 3aad53ec0421149c8fb9e163379bba8efb2ab42e /lib | |
| parent | 1b8f663bfa3253cef4a9adeb5bda26e327daee2a (diff) | |
| download | ruby-8969c2a04a2750026f99f8d0e314d184eed80676.tar.gz ruby-8969c2a04a2750026f99f8d0e314d184eed80676.tar.xz ruby-8969c2a04a2750026f99f8d0e314d184eed80676.zip | |
* various files: macro fix-up by Michal Rokos.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/complex.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/complex.rb b/lib/complex.rb index 77d8859a6..2de179128 100644 --- a/lib/complex.rb +++ b/lib/complex.rb @@ -65,7 +65,9 @@ end class Complex < Numeric @RCS_ID='-$Id: complex.rb,v 1.3 1998/07/08 10:05:28 keiju Exp keiju $-' - + + undef step + def Complex.generic?(other) other.kind_of?(Integer) or other.kind_of?(Float) or |
