gem.sh
gem.sh
Home
Gems
Types
Docs
Community
Quick search...
Classes
class Date
class Date::Infinity
Overview
H
Home
R
Reference
T
Types
C
Changelogs
Documentation
README
More
Versions
Source
Playground
Stats
Metadata
Wiki
Announcements
Community
Articles
Tutorials
Videos
Community
Gems
date
3.0.1
class Date
class Date::Infinity
# initialize
Select a tab
README
Metadata
Source
Versions
Changelogs
Guides
Articles
Reference
Playground
Videos
Types
Community
Stats
Announcements
class Date::Infinity
def initialize(d=1) @d = d <=> 0 end
def
initialize
(
d
=
1
)
@d
=
d
<=>
0
end
Included Modules
Date::Infinity::Comparable
Instance Methods
# +@
# -@
# <=>
# abs
# coerce
# d
# finite?
# infinite?
# initialize
# nan?
# to_f
# zero?