diff options
Diffstat (limited to 'lib/cmath.rb')
-rw-r--r-- | lib/cmath.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cmath.rb b/lib/cmath.rb index 4751f6c4a1..e21f9d8947 100644 --- a/lib/cmath.rb +++ b/lib/cmath.rb @@ -314,3 +314,9 @@ module CMath module_function :lgamma end + +class Object + def real? + raise TypeError, "Numeric Number required" + end +end |