Class: View::Base
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#stdscr ⇒ Object
3 4 5 |
# File 'lib/view/base.rb', line 3 def stdscr Ncurses.stdscr end |
#with_color(window, name) ⇒ Object
7 8 9 10 11 |
# File 'lib/view/base.rb', line 7 def with_color(window, name) window.attron Ncurses.COLOR_PAIR(Colors[name][:number]) yield if block_given? window.attroff Ncurses.COLOR_PAIR(Colors[name][:number]) end |