Methods

Drydock::Screen

Public Instance Methods

flush() click to toggle source
# File lib/drydock/screen.rb, line 23
def flush
  @@mutex.synchronize do
    #return if @@offset == @@output.tell
    @@output.seek @@offset
    STDOUT.puts @@output.read unless @@output.eof?
    @@offset = @@output.tell
  end
end
puts(*msg) click to toggle source
# File lib/drydock/screen.rb, line 17
def puts(*msg)
  @@mutex.synchronize do
    @@output.puts *msg
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.