Sha256: ee5730ecd29587bade2e46e60f8b6b47f3122cab794287865dfe6eaa2c761cd0
Contents?: true
Size: 225 Bytes
Versions: 2
Compression:
Stored size: 225 Bytes
Contents
class InfiniteTime module TimeExtension def infinite? is_a? InfiniteTime end def <=> other if other.infinite? (other.positive?) ? -1 : 1 else super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
infinite_time-0.0.2 | lib/infinite_time/time_extension.rb |
infinite_time-0.0.1 | lib/infinite_time/time_extension.rb |