Module: Watchr
- Defined in:
- lib/watchr.rb,
lib/watchr/script.rb,
lib/watchr/controller.rb,
lib/watchr/event_handlers/base.rb,
lib/watchr/event_handlers/unix.rb,
lib/watchr/event_handlers/darwin.rb,
lib/watchr/event_handlers/portable.rb
Defined Under Namespace
Modules: EventHandler Classes: Controller, Script
Constant Summary collapse
- VERSION =
'0.7'
Class Attribute Summary collapse
-
.handler ⇒ Class
Detect current OS and return appropriate handler.
-
.options ⇒ Struct
Options proxy.
Class Method Summary collapse
-
.debug(msg) ⇒ nil
Outputs formatted debug statement to stdout, only if ‘::options.debug` is true.
- .version ⇒ Object deprecated Deprecated.
Class Attribute Details
.handler ⇒ Class
Detect current OS and return appropriate handler.
109 110 111 |
# File 'lib/watchr.rb', line 109 def handler @handler end |
.options ⇒ Struct
66 67 68 |
# File 'lib/watchr.rb', line 66 def @options end |
Class Method Details
.debug(msg) ⇒ nil
Outputs formatted debug statement to stdout, only if ‘::options.debug` is true
86 87 88 |
# File 'lib/watchr.rb', line 86 def debug(msg) puts "[watchr debug] #{msg}" if .debug end |