Sha256: 3ae9cf37af7a022b6bb84ad9b75cbe86b224a3a86329214fa5810a99f163b974

Contents?: true

Size: 277 Bytes

Versions: 7

Compression:

Stored size: 277 Bytes

Contents

module Redwood

class PollMode < LogMode
  def initialize
    @new = true
    super
  end

  def puts s=""
    self << s + "\n"
  end

  def poll
    puts unless @new
    @new = false
    puts "Poll started at #{Time.now}"
    PollManager.do_poll { |s| puts s }
  end
end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sup-0.8.1 lib/sup/modes/poll-mode.rb
sup-0.7 lib/sup/modes/poll-mode.rb
sup-0.3 lib/sup/modes/poll-mode.rb
sup-0.5 lib/sup/modes/poll-mode.rb
sup-0.4 lib/sup/modes/poll-mode.rb
sup-0.6 lib/sup/modes/poll-mode.rb
sup-0.8 lib/sup/modes/poll-mode.rb