Module: Qpid::Proton::TimeCompare
- Included in:
- Container, Container::ConnectionTask, Schedule
- Defined in:
- lib/util/schedule.rb
Instance Method Summary collapse
-
#before_eq(t1, t2) ⇒ Object
t1 <= t2, where nil is treated as “distant future”.
-
#earliest(t1, t2) ⇒ Object
min(t1, t2) where nil is treated as “distant future”.
Instance Method Details
#before_eq(t1, t2) ⇒ Object
t1 <= t2, where nil is treated as “distant future”
23 |
# File 'lib/util/schedule.rb', line 23 def before_eq(t1, t2) (t1 && t2) ? (t1 <= t2) : t1; end |
#earliest(t1, t2) ⇒ Object
min(t1, t2) where nil is treated as “distant future”
26 |
# File 'lib/util/schedule.rb', line 26 def earliest(t1, t2) before_eq(t1, t2) ? t1 : t2; end |