Skip to content

Commit

Permalink
[ruby/date] Numeric already includes Comparable
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda authored and hsbt committed Nov 12, 2020
1 parent 33574d5 commit 028d52b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/date/lib/date.rb
Expand Up @@ -11,8 +11,6 @@ def infinite?

class Infinity < Numeric # :nodoc:

include Comparable

def initialize(d=1) @d = d <=> 0 end

def d() @d end
Expand Down

0 comments on commit 028d52b

Please sign in to comment.