diff options
author | Eric Wong <e@80x24.org> | 2015-12-14 10:32:25 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-12-15 07:56:05 +0000 |
commit | 918f3298510be4505306813bd71699b61ec8dfc5 (patch) | |
tree | d8a3797223ae27a98627e1f6ce21fba818c59492 /lib/dtas/watchable.rb | |
parent | 90dcf561fd22c8a53c03d97292f86a82e74ca4a3 (diff) | |
download | dtas-918f3298510be4505306813bd71699b61ec8dfc5.tar.gz |
DTAS does not expose any sort of public API for external users, so it will not be documented using RDoc. Currently all of our documentation is in plain-text or Markdown (only for manpages).
Diffstat (limited to 'lib/dtas/watchable.rb')
-rw-r--r-- | lib/dtas/watchable.rb | 13 |
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 |