diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-07 08:41:59 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-07 08:41:59 +0000 |
| commit | d2e2d320ab2a679c66edefbaed2c3a785956349e (patch) | |
| tree | 88fbca16ba3c3b802990d969a13a57ec67bb3ab0 /lib/complex.rb | |
| parent | 46af6e017599c6db1cfd1629c53cd59c6c410c5b (diff) | |
| download | ruby-d2e2d320ab2a679c66edefbaed2c3a785956349e.tar.gz ruby-d2e2d320ab2a679c66edefbaed2c3a785956349e.tar.xz ruby-d2e2d320ab2a679c66edefbaed2c3a785956349e.zip | |
* sprintf.c (rb_f_sprintf): [ruby-dev:27967]
* range.c (range_include): use discrete membership for non Numeric
values, for example, String.
* numeric.c (num_scalar_p): new method. [ruby-dev:27936]
* lib/complex.rb (Complex#scalar?): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
| -rw-r--r-- | lib/complex.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/complex.rb b/lib/complex.rb index 110a28ee7..8832f17f8 100644 --- a/lib/complex.rb +++ b/lib/complex.rb @@ -103,6 +103,10 @@ class Complex < Numeric undef step + def scalar? + false + end + def Complex.generic?(other) # :nodoc: other.kind_of?(Integer) or other.kind_of?(Float) or |
