Class: Akephalos::Console

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

Class Method Summary collapse

Class Method Details

.startObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/akephalos/console.rb', line 10

def self.start
  require 'irb'

  begin
    require 'irb/completion'
  rescue Exception
    # No readline available, proceed anyway.
  end

  if ::File.exists? ".irbrc"
    ENV['IRBRC'] = ".irbrc"
  end

  IRB.start
end