class AppInfo::Shell

Constants

PREFIX
PROMPT

Public Class Methods

run() click to toggle source
# File lib/app_info/shell.rb, line 18
def run
  setup

  irb = IRB::Irb.new
  irb.run
end
setup() click to toggle source
# File lib/app_info/shell.rb, line 25
def setup
  IRB.setup nil

  IRB.conf[:PROMPT][:APPINFO] = PROMPT
  IRB.conf[:PROMPT_MODE] = :APPINFO
  IRB.conf[:AUTO_INDENT] = true
end