Class: Vigilem::Core::Device

Inherits:
AbstractDevice
  • Object
show all
Defined in:
lib/vigilem/core/device.rb

Overview

TODO:

more configurable facade so not all methods from underlying object get through

hooks for loading the pipeline errors when no :system_check has passed

Class Method Summary collapse

Methods inherited from AbstractDevice

#available?, #import, inherited, #run_system_checks, #setting?, #settings

Methods included from Hooks

extended, #run_hook

Methods included from Hooks::Inheritable

#hooks, #inherited

Methods included from Adapters::Adapter

#affix, #attach, #initialize_adapter

Methods included from LockablePipelineComponent

#semaphore, #semaphore!, #synchronize

Methods included from Adapters::BasicAdapter

#initialize_basic_adapter, #source

Class Method Details

.new(*args, &config) ⇒ Object

Parameters:

  • args (Array)
  • config (Proc)

Returns:



20
21
22
23
24
25
26
27
# File 'lib/vigilem/core/device.rb', line 20

def self.new(*args, &config)
  if block_given?
    (ret = Class.new(self)).instance_eval(&config)
    ret
  else
    super(*args)
  end
end