aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/complex.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/complex.rb b/lib/complex.rb
index 110a28ee7e..8832f17f82 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