Class: Boundy::Bound::Infinite
- Inherits:
-
Object
- Object
- Boundy::Bound::Infinite
- Defined in:
- lib/boundy/bound/infinite.rb,
lib/boundy/bound/infinite/above.rb,
lib/boundy/bound/infinite/below.rb
Defined Under Namespace
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #after?(date_range) ⇒ Boolean
- #before?(date_range) ⇒ Boolean
- #date ⇒ Object
- #finite? ⇒ Boolean
- #in_time_zone(tz) ⇒ Object
- #infinite? ⇒ Boolean
- #to_midnight ⇒ Object
- #within?(date_range) ⇒ Boolean
Instance Method Details
#<=>(other) ⇒ Object
38 39 40 |
# File 'lib/boundy/bound/infinite.rb', line 38 def <=>(other) raise "" end |
#after?(date_range) ⇒ Boolean
6 7 8 |
# File 'lib/boundy/bound/infinite.rb', line 6 def after?(date_range) false end |
#before?(date_range) ⇒ Boolean
10 11 12 |
# File 'lib/boundy/bound/infinite.rb', line 10 def before?(date_range) false end |
#date ⇒ Object
26 27 28 |
# File 'lib/boundy/bound/infinite.rb', line 26 def date nil end |
#finite? ⇒ Boolean
30 31 32 |
# File 'lib/boundy/bound/infinite.rb', line 30 def finite? false end |
#in_time_zone(tz) ⇒ Object
18 19 20 |
# File 'lib/boundy/bound/infinite.rb', line 18 def in_time_zone(tz) self end |
#infinite? ⇒ Boolean
34 35 36 |
# File 'lib/boundy/bound/infinite.rb', line 34 def infinite? true end |
#to_midnight ⇒ Object
22 23 24 |
# File 'lib/boundy/bound/infinite.rb', line 22 def to_midnight self end |
#within?(date_range) ⇒ Boolean
14 15 16 |
# File 'lib/boundy/bound/infinite.rb', line 14 def within?(date_range) true end |