Class: QandAWindow
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- QandAWindow
- Defined in:
- lib/q_and_a_window.rb
Instance Method Summary collapse
-
#initialize(window) ⇒ QandAWindow
constructor
A new instance of QandAWindow.
- #refresh ⇒ Object
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
#refresh ⇒ Object
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 |