Move Integral#(zero|nonzero|positive|negative)? to Numeric

Because these methods work if object is `Comparable`, and `Numeric` is
`Comparable`.
This commit is contained in:
KOBAYASHI Shuji
2019-05-17 21:13:31 +09:00
parent b6e9fab649
commit c5c39f585b
@@ -1,4 +1,4 @@
module Integral
class Numeric
def zero?
self == 0
end