Module: Rib::Readline
- Extended by:
- Plugin
- Defined in:
- lib/rib/core/readline.rb
Instance Attribute Summary
Attributes included from Plugin
Instance Method Summary collapse
-
#before_loop ⇒ Object
————— Rib API —————.
- #get_input ⇒ Object
Methods included from Plugin
disable, disabled?, enable, enabled?, extended
Instance Method Details
#before_loop ⇒ Object
————— 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_input ⇒ Object
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 |