Module: Rib::Readline

Extended by:
Plugin
Defined in:
lib/rib/core/readline.rb

Instance Attribute Summary

Attributes included from Plugin

#disabled

Instance Method Summary collapse

Methods included from Plugin

const_missing, disable, disabled?, enable, enabled?, extended

Instance Method Details

#before_loopObject

————— Rib API —————



11
12
13
14
15
# File 'lib/rib/core/readline.rb', line 11

def before_loop
  return super if Readline.disabled?
  config[:history] = ::Readline::HISTORY
  super
end

#get_inputObject



17
18
19
20
# File 'lib/rib/core/readline.rb', line 17

def get_input
  return super if Readline.disabled?
  ::Readline.readline(prompt, true)
end