Module: Madeleine::Clock::ClockedSystem

Defined in:
lib/madeleine/clock.rb

Overview

Let your system extend this module if you need to access the machine time. Used together with a TimeActor that keeps the clock current.

Instance Method Summary collapse

Instance Method Details

#clockObject

Returns this system’s Clock.



20
21
22
23
24
25
# File 'lib/madeleine/clock.rb', line 20

def clock
  unless defined? @clock
    @clock = Clock.new
  end
  @clock
end