Class: QandAWindow

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

Instance Method Summary collapse

Constructor Details

#initialize(window) ⇒ QandAWindow

Returns a new instance of QandAWindow.



4
5
6
7
# File 'lib/q_and_a_window.rb', line 4

def initialize window
  super
  refresh
end

Instance Method Details

#refreshObject



9
10
11
12
13
14
# File 'lib/q_and_a_window.rb', line 9

def refresh
  box("|", "-")
  setpos(0, 0)
  addstr('[ Q and A ]')
  super
end