Module: Arcenciel

Defined in:
lib/arcenciel.rb,
lib/arcenciel/manager.rb,
lib/arcenciel/version.rb,
lib/arcenciel/surfaces.rb,
lib/arcenciel/manager/hub.rb,
lib/arcenciel/surfaces/knob.rb,
lib/arcenciel/manager/device.rb,
lib/arcenciel/utility/chaser.rb,
lib/arcenciel/utility/logging.rb,
lib/arcenciel/utility/dsl_base.rb,
lib/arcenciel/surfaces/controller.rb

Defined Under Namespace

Modules: Logging, Surfaces Classes: Chaser, DSLBase, Device, Hub, Manager

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.add(&blk) ⇒ Object

Add a new controllers.



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

def self.add(&blk)
  controllers << Surfaces::Controller.from_dsl(&blk)
end

.controllersObject

Lists all controllers.



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

def self.controllers
  @controllers ||= []
end

.logger=(logger) ⇒ Object

Set the controller lifecycle logger.



26
27
28
# File 'lib/arcenciel.rb', line 26

def self.logger=(logger)
  Logging.logger = logger
end

.run!(&blk) ⇒ Object

Run the main event loop.



20
21
22
23
# File 'lib/arcenciel.rb', line 20

def self.run!(&blk)
  add(&blk) if block_given?
  Manager.run!(controllers)
end