module Super::Tailer
Constants
- VERSION
Public Instance Methods
watch(content_file) { |readline| ... }
click to toggle source
# File lib/super/tailer.rb, line 7 def watch(content_file) file = File.new(content_file) file.seek(0, File::SEEK_END) loop do begin yield file.readline rescue EOFError file.seek(0, File::SEEK_CUR) sleep 0.1 end end end