Class: BigCat::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/bigcat.rb

Instance Method Summary collapse

Constructor Details

#initializeCommand

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