Class: Rabbit::Logger::GUI
- Inherits:
-
Object
- Object
- Rabbit::Logger::GUI
- Includes:
- Base
- Defined in:
- lib/rabbit/logger/gui.rb
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#start_gui_main_loop_automatically ⇒ Object
Returns the value of attribute start_gui_main_loop_automatically.
Attributes included from Base
Instance Method Summary collapse
- #clear_buffer ⇒ Object
-
#initialize(level = nil, width = 450, height = 400) ⇒ GUI
constructor
A new instance of GUI.
- #quit ⇒ Object
Methods included from Base
#<<, #debug, #debug?, #error, #error?, #fatal, #fatal?, #info, #info?, #log, #unknown, #unknown?, #warning, #warning?
Methods included from GetText
Constructor Details
#initialize(level = nil, width = 450, height = 400) ⇒ GUI
Returns a new instance of GUI.
13 14 15 16 17 18 19 |
# File 'lib/rabbit/logger/gui.rb', line 13 def initialize(level=nil, width=450, height=400) super(*[level].compact) @width = width @height = height @start_gui_main_loop_automatically = false init_dialog end |
Instance Attribute Details
#start_gui_main_loop_automatically ⇒ Object
Returns the value of attribute start_gui_main_loop_automatically.
12 13 14 |
# File 'lib/rabbit/logger/gui.rb', line 12 def start_gui_main_loop_automatically @start_gui_main_loop_automatically end |
Instance Method Details
#clear_buffer ⇒ Object
21 22 23 |
# File 'lib/rabbit/logger/gui.rb', line 21 def clear_buffer @buffer.text = "" end |
#quit ⇒ Object
25 26 27 |
# File 'lib/rabbit/logger/gui.rb', line 25 def quit @dialog.destroy end |