Module: Wake::EventHandler::Unix

Defined in:
lib/wake/event_handlers/unix.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.defaultsObject (readonly)

Returns the value of attribute defaults.



8
9
10
# File 'lib/wake/event_handlers/unix.rb', line 8

def defaults
  @defaults
end

Class Method Details

.defaultObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/wake/event_handlers/unix.rb', line 10

def default
  defaults.empty? &&
    begin; require( 'wake/event_handlers/rev' );
    rescue LoadError => e; end
  defaults.empty? &&
    begin require( 'wake/event_handlers/portable' );
      defaults << Wake::EventHandler::Portable;
    end
  defaults[0]
end