Class: JSCommander::Shell::SimpleConsole

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

Instance Method Summary collapse

Constructor Details

#initialize(input = $stdin) ⇒ SimpleConsole

Returns a new instance of SimpleConsole.



9
10
11
# File 'lib/jscmd/shell.rb', line 9

def initialize(input = $stdin)
  @input = input
end

Instance Method Details

#closeObject



26
27
# File 'lib/jscmd/shell.rb', line 26

def close
end

#readlineObject



16
17
18
19
20
21
22
23
24
# File 'lib/jscmd/shell.rb', line 16

def readline
  begin
    line = @input.readline
    line.chomp! if line
    line
  rescue EOFError
    nil
  end
end

#show_bannerObject



13
14
# File 'lib/jscmd/shell.rb', line 13

def show_banner
end