class CatHerder::Current
Public Instance Methods
dir_children(path)
click to toggle source
# File lib/cat_herder/current.rb, line 15 def dir_children(path) (self.dir_children_cache ||= {})[path] ||= File.directory?(path) ? Dir.children(path) : EMPTY_ARRAY end
mtime(path)
click to toggle source
# File lib/cat_herder/current.rb, line 11 def mtime(path) (self.mtime_cache ||= {})[path] ||= File.file?(path) ? File.mtime(path).to_f : Float::NAN end
resolved_paths()
click to toggle source
Calls superclass method
# File lib/cat_herder/current.rb, line 7 def resolved_paths super || (self.resolved_paths = {}) end