about summary refs log tree commit homepage
path: root/lib/dtas/watchable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas/watchable.rb')
-rw-r--r--lib/dtas/watchable.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/dtas/watchable.rb b/lib/dtas/watchable.rb
index 36e8644..60bade0 100644
--- a/lib/dtas/watchable.rb
+++ b/lib/dtas/watchable.rb
@@ -1,14 +1,12 @@
 # Copyright (C) 2013-2015 all contributors <dtas-all@nongnu.org>
 # License: GPLv3 or later <https://www.gnu.org/licenses/gpl-3.0.txt>
 begin
-  require 'sleepy_penguin'
-rescue LoadError
-end
+require 'sleepy_penguin'
 
 # used to restart DTAS::Source::SplitFX processing in dtas-player
 # if the YAML file is edited
-module DTAS::Watchable
-  class InotifyReadableIter < SleepyPenguin::Inotify
+module DTAS::Watchable # :nodoc:
+  class InotifyReadableIter < SleepyPenguin::Inotify # :nodoc:
     def self.new
       super(:CLOEXEC)
     end
@@ -62,4 +60,7 @@ module DTAS::Watchable
     srv.wait_ctl(@ino, :delete)
     @ino = @ino.close
   end
-end if defined?(SleepyPenguin::Inotify)
+end
+
+rescue LoadError
+end