Module: Utils::IRB

Defined in:
lib/utils/irb.rb

Defined Under Namespace

Modules: Module, Regexp, Relation, Service, Shell, String

Class Method Summary collapse

Class Method Details

.configureObject



486
487
488
489
490
491
492
493
494
495
496
497
498
# File 'lib/utils/irb.rb', line 486

def self.configure
  ::IRB.conf[:SAVE_HISTORY] = 1000
  if ::IRB.conf[:PROMPT]
    ::IRB.conf[:PROMPT][:CUSTOM] = {
      :PROMPT_I =>  ">> ",
      :PROMPT_N =>  ">> ",
      :PROMPT_S =>  "%l> ",
      :PROMPT_C =>  "+> ",
      :RETURN   =>  " # => %s\n"
    }
    ::IRB.conf[:PROMPT_MODE] = :CUSTOM
  end
end