module 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
print(*msg)
click to toggle source
# File lib/drydock/screen.rb, line 11 def print(*msg) @@mutex.synchronize do @@output.print *msg 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