Method: WindowTerminal::WindowManager#display_page
- Defined in:
- lib/accu-window.rb
#display_page(num = 1) ⇒ Object
Displays the page at the number specified; defaults to one.
470 471 472 473 474 475 476 477 |
# File 'lib/accu-window.rb', line 470 def display_page(num=1) raise(ArgumentError, "Argument 1 must be a valid integer!") if (not (num.is_a? Fixnum)) hide_page(@displayed_page) @pages[num-1].each { |item| WindowTerminal.add_window(item) } @displayed_page = num end |