class ApEye
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/apeye.rb, line 31 def initialize super 480, 30, false self.caption = 'AP Eye - Log Monitor' @font = Gosu::Font.new(16) @message = Message.instance foo = StringIO.new $stdout = foo end
start()
click to toggle source
# File lib/apeye.rb, line 23 def self.start @thread = Thread.new do window = ApEye.new window.show end end
Public Instance Methods
draw()
click to toggle source
# File lib/apeye.rb, line 46 def draw @font.draw("> #{@message.text}", 10, 10, ZOrder::UI, 1.0, 1.0, 0xff_ffff00) end
update()
click to toggle source
# File lib/apeye.rb, line 42 def update @message.set_text end