Class: IRuby::KernelApplication

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

Constant Summary collapse

DEFAULT_CONNECTION_FILE =
"kernel-#{Process.pid}.json".freeze

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ KernelApplication

Returns a new instance of KernelApplication.



3
4
5
# File 'lib/iruby/kernel_app.rb', line 3

def initialize(argv)
  parse_command_line(argv)
end

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
# File 'lib/iruby/kernel_app.rb', line 7

def run
  if @test_mode
    dump_connection_file
    return
  end

  run_kernel
end