Sha256: daafbc67040375fcbbac202f4ca1c1330e1186174f91c1ab687b14b8906eed64
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
module FunWith module Files module Watchers # Watches a path where nothing currently exists, and reports a change if # something appears there. class MissingWatcher < NodeWatcher def initialize( path ) set_path( path ) end # The fact that the watcher now needs to be replaced with a File/DirectoryWatcher # must be handled elsewhere. def update self.path.exist? ? {self.path => :created } : {} end def all_paths [] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fun_with_files-0.0.18 | ./lib/fun_with/files/watchers/missing_watcher.rb |