Commit c5c39f58 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

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

Because these methods work if object is `Comparable`, and `Numeric` is
`Comparable`.
parent b6e9fab6
module Integral
class Numeric
def zero?
self == 0
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment