Class: Clite
- Inherits:
-
Object
- Object
- Clite
- Defined in:
- lib/clite.rb
Defined Under Namespace
Classes: Screen
Instance Method Summary collapse
-
#initialize ⇒ Clite
constructor
A new instance of Clite.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/clite.rb', line 8 def run @screen.update loop do char = STDIN.getch @screen.update char break if char == ?q end end |