Class: MainWindow

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/main_window.rb

Instance Method Summary collapse

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

#refreshObject



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_positionObject



9
10
11
# File 'lib/main_window.rb', line 9

def to_title_position
  setpos(1, 1)
end