From f0f82f6ce2f6ba0f071de5614508db6ed1a5f672 Mon Sep 17 00:00:00 2001 From: Faustino Aguilar Date: Thu, 30 Mar 2017 07:39:36 -0500 Subject: [PATCH] Change private method scan to scanner --- src/watcher.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/watcher.cr b/src/watcher.cr index 100cbd2..c94c4ca 100644 --- a/src/watcher.cr +++ b/src/watcher.cr @@ -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) @@ -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