Module: Clockwork

Extended by:
Methods
Defined in:
lib/clockwork.rb,
lib/clockwork/at.rb,
lib/clockwork/event.rb,
lib/clockwork/manager.rb

Defined Under Namespace

Modules: Methods Classes: At, Event, Manager

Class Method Summary collapse

Methods included from Methods

clear!, configure, error_handler, every, handler, on, run

Class Method Details

.included(klass) ⇒ Object


10
11
12
13
# File 'lib/clockwork.rb', line 10

def included(klass)
  klass.send "include", Methods
  klass.extend Methods
end

.managerObject


15
16
17
# File 'lib/clockwork.rb', line 15

def manager
  @manager ||= Manager.new
end

.manager=(manager) ⇒ Object


19
20
21
# File 'lib/clockwork.rb', line 19

def manager=(manager)
  @manager = manager
end