Sha256: 05dc1f917f4b60efa07a58b8e99d2642a3798ebd9981eb525cb4fca67fcc5da3

Contents?: true

Size: 298 Bytes

Versions: 32

Compression:

Stored size: 298 Bytes

Contents

module Redwood

class PollMode < LogMode
  def initialize
    @new = true
    super "poll for new messages"
  end

  def poll
    unless @new
      @new = false
      self << "\n"
    end
    self << "Poll started at #{Time.now}\n"
    PollManager.do_poll { |s| self << (s + "\n") }
  end
end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
sup-1.2 lib/sup/modes/poll_mode.rb
sup-1.1 lib/sup/modes/poll_mode.rb
sup-1.0 lib/sup/modes/poll_mode.rb
sup-0.23 lib/sup/modes/poll_mode.rb
sup-0.22.1 lib/sup/modes/poll_mode.rb
sup-0.22.0 lib/sup/modes/poll_mode.rb
sup-0.21.0 lib/sup/modes/poll_mode.rb
sup-0.20.0 lib/sup/modes/poll_mode.rb
sup-0.19.0 lib/sup/modes/poll_mode.rb
sup-0.18.0 lib/sup/modes/poll_mode.rb
sup-0.17.0 lib/sup/modes/poll_mode.rb
sup-0.16.0 lib/sup/modes/poll_mode.rb
sup-0.15.4 lib/sup/modes/poll_mode.rb
sup-0.15.3 lib/sup/modes/poll_mode.rb
sup-0.15.2 lib/sup/modes/poll_mode.rb
sup-0.15.1 lib/sup/modes/poll_mode.rb
sup-0.15.0 lib/sup/modes/poll_mode.rb
sup-0.14.1.1 lib/sup/modes/poll_mode.rb
sup-0.13.2.1 lib/sup/modes/poll_mode.rb
sup-0.14.1 lib/sup/modes/poll_mode.rb