Module: FancyIrb::IrbExtPromptLegacy

Included in:
IRB::Irb
Defined in:
lib/fancy_irb/irb_ext.rb

Instance Method Summary collapse

Instance Method Details

#prompt(format, ltype, indent, line_no) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/fancy_irb/irb_ext.rb', line 28

def prompt(format, ltype, indent, line_no)
  FancyIrb.handle_prompt(
    super(format, ltype, indent, line_no),
    IRB.conf[:AUTO_INDENT] ? indent * 2 : 0
    # IRB.conf[:AUTO_INDENT] && IRB.conf[:PROMPT][IRB.conf[:PROMPT_MODE]][:PROMPT_C] == format
  )
end