Sha256: 96768a5fbc9be1469d3b5d5855c24460e16c0171b72a262a76a141e2c4609fa6

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module Redwood

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

  def puts s=""
    self << s + "\n"
#    if lines % 5 == 0
      BufferManager.draw_screen
#    end
  end

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sup-0.0.1 lib/sup/modes/poll-mode.rb