Class: MainWindow
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- MainWindow
- Defined in:
- lib/main_window.rb
Instance Method Summary collapse
-
#initialize(window) ⇒ MainWindow
constructor
A new instance of MainWindow.
- #refresh ⇒ Object
- #to_title_position ⇒ Object
Constructor Details
#initialize(window) ⇒ MainWindow
Returns a new instance of MainWindow.
4 5 6 7 |
# File 'lib/main_window.rb', line 4 def initialize window super refresh end |
Instance Method Details
#refresh ⇒ Object
13 14 15 16 17 18 |
# File 'lib/main_window.rb', line 13 def refresh box("|", "-") setpos(0, 0) addstr('[ Ruby Fail ]') super end |
#to_title_position ⇒ Object
9 10 11 |
# File 'lib/main_window.rb', line 9 def to_title_position setpos(1, 1) end |