Module: Watchr::EventHandler::Unix
- Defined in:
- lib/watchr/event_handlers/unix.rb
Class Attribute Summary collapse
-
.defaults ⇒ Object
readonly
Returns the value of attribute defaults.
Class Method Summary collapse
Class Attribute Details
.defaults ⇒ Object (readonly)
Returns the value of attribute defaults.
8 9 10 |
# File 'lib/watchr/event_handlers/unix.rb', line 8 def defaults @defaults end |
Class Method Details
.default ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/watchr/event_handlers/unix.rb', line 10 def default defaults.empty? && begin; require( 'watchr/event_handlers/rev' ); rescue LoadError => e; end defaults.empty? && begin require( 'watchr/event_handlers/portable' ); defaults << Watchr::EventHandler::Portable; end defaults[0] end |