class Kicker::FSEvents::FSEvent
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/kicker/fsevents.rb, line 10 def initialize(path) @path = path end
Public Instance Methods
files()
click to toggle source
# File lib/kicker/fsevents.rb, line 14 def files Dir.glob("#{File.expand_path(path)}/*").map do |filename| begin [File.mtime(filename), filename] rescue Errno::ENOENT nil end end.compact.sort.reverse.map { |_, filename| filename } end