Add Numeric#{positive?,negative?}; CRuby2.3

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-10-18 10:10:37 +09:00
parent 44f07045d1
commit b5dfbce767
@@ -14,4 +14,12 @@ module Integral
self
end
end
def positive?
self > 0
end
def negative?
self < 0
end
end