Sha256: 9791ea02feff5f5482e44ecb61bd88503fe40a7bbcd68048dd8aae50c79d679d
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
module FunWith module Files module Watchers class NodeWatcher attr_accessor :path def set_path( path ) self.path = path.fwf_filepath end def create_watchers( paths ) {}.tap do |watchers| for path in paths watchers[path.fwf_filepath] = Watcher.factory( path ) end end end # sets up an object variable for changes, then clears it and returns # the changes. I got sick of passing the changes hash around. def new_changeset( &block ) @changes = {} yield changes = @changes @changes = {} changes 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/node_watcher.rb |