mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -1,4 +1,4 @@
|
||||
module Integral
|
||||
class Numeric
|
||||
def zero?
|
||||
self == 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user