Module: Tidings
- Defined in:
- lib/tidings.rb,
lib/tidings/version.rb,
lib/tidings/watcher.rb
Defined Under Namespace
Classes: Watcher
Constant Summary collapse
- VERSION =
'0.2.1'
Class Method Summary collapse
Class Method Details
.log(message) ⇒ Object
14 15 16 |
# File 'lib/tidings.rb', line 14 def self.log() $stderr.puts('Tidings: ' + .to_s) if $DEBUG end |
.watch(path, processor = nil, &block) ⇒ Object
18 19 20 21 22 |
# File 'lib/tidings.rb', line 18 def self.watch(path, processor=nil, &block) watcher = Tidings::Watcher.new(path, processor || block) watcher.start watcher end |