Module: Dynflow::Clock::Timer
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.[](*fields) ⇒ Object
17 18 19 |
# File 'lib/dynflow/clock.rb', line 17 def self.[](*fields) super(*fields).tap { |v| Match! v.who, -> who { who.respond_to? v.where } } end |
Instance Method Details
#<=>(other) ⇒ Object
23 24 25 26 |
# File 'lib/dynflow/clock.rb', line 23 def <=>(other) Type! other, self.class self.when <=> other.when end |
#apply ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/dynflow/clock.rb', line 28 def apply if Algebrick::Some[Object] === what who.send where, what.value else who.send where end end |