diff options
Diffstat (limited to 'ext/date/lib/date.rb')
-rw-r--r-- | ext/date/lib/date.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/date/lib/date.rb b/ext/date/lib/date.rb index 65c34ace49..6888bd2d4e 100644 --- a/ext/date/lib/date.rb +++ b/ext/date/lib/date.rb @@ -4,7 +4,12 @@ require 'date_core' class Date + VERSION = "3.3.4" # :nodoc: + # call-seq: + # infinite? -> false + # + # Returns +false+ def infinite? false end @@ -30,6 +35,8 @@ class Date def <=>(other) case other when Infinity; return d <=> other.d + when Float::INFINITY; return d <=> 1 + when -Float::INFINITY; return d <=> -1 when Numeric; return d else begin |