Skip to content

Commit

Permalink
Change private method scan to scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
faustinoaq committed Mar 30, 2017
1 parent efc287d commit f0f82f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/watcher.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Watcher
File.stat(file).mtime.to_s("%Y%m%d%H%M%S")
end

private def self.scan(files, event)
private def self.scanner(files, event)
event.status = false
Dir.glob(files) do |file|
timestamp = timestamp_for(file)
Expand All @@ -38,7 +38,7 @@ module Watcher
def self.watch(files)
event = WatchEvent.new
loop do
event = Watcher.scan(files, event)
event = scanner(files, event)
yield event
event.files.clear
sleep 1
Expand Down

0 comments on commit f0f82f6

Please sign in to comment.