Class: BigCat::Command
- Inherits:
-
Object
- Object
- BigCat::Command
- Defined in:
- lib/bigcat.rb
Instance Method Summary collapse
-
#initialize ⇒ Command
constructor
A new instance of Command.
- #run! ⇒ Object
Constructor Details
#initialize ⇒ Command
Returns a new instance of Command.
3 4 |
# File 'lib/bigcat.rb', line 3 def initialize() end |
Instance Method Details
#run! ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/bigcat.rb', line 6 def run! begin line = $stdin.readline if line == "\n" $stdout.puts("\n\n") else $stdout.puts("\e#3#{line}\e#4#{line}") end $stdout.flush end while true rescue EOFError end |