1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/date] Numeric already includes Comparable

https://github.com/ruby/date/commit/f6140df0ad
This commit is contained in:
Akira Matsuda 2020-11-04 21:30:25 +09:00 committed by Hiroshi SHIBATA
parent 33574d57f1
commit 028d52bb94

View file

@ -11,8 +11,6 @@ class Date
class Infinity < Numeric # :nodoc:
include Comparable
def initialize(d=1) @d = d <=> 0 end
def d() @d end