Sha256: a1c6f1cbc25c0fb36c6db94d4365b55d0eb9912f0183502545c2fd2c5afe9224
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
module Space module Source module Watcher attr_reader :path def initialize(path) @path = path start end def watched_paths @watched_paths ||= self.class.watch.map do |path| path[0, 1] == '~' ? path : "#{self.path}/#{path}" end end private def start watchers.map(&:run) end def watchers @watchers ||= watched_paths.map do |path| Watch.new(path) do |paths| refresh end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
space-0.0.6 | lib/space/source/watcher.rb |