module Dynflow::Clock::Timer

Public Class Methods

[](*fields) click to toggle source
Calls superclass method
# File lib/dynflow/clock.rb, line 15
def self.[](*fields)
  super(*fields).tap { |v| Match! v.who, ->who { who.respond_to? v.where } }
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/dynflow/clock.rb, line 21
def <=>(other)
  Type! other, self.class
  self.when <=> other.when
end
apply() click to toggle source
# File lib/dynflow/clock.rb, line 34
def apply
  if Algebrick::Some[Object] === what
    who.send where, what.value
  else
    who.send where
  end
end
eql?(other) click to toggle source
# File lib/dynflow/clock.rb, line 26
def eql?(other)
  object_id == other.object_id
end
hash() click to toggle source
# File lib/dynflow/clock.rb, line 30
def hash
  object_id
end