Class: Clin::LineReader::Readline
- Defined in:
- lib/clin/line_reader/readline.rb
Overview
Readline line scanner. Allow autocomplete and history. Use Readline.readline Valid options: echo: [Boolean] Set to false not to show on screen what you type(e.g. password) autocomplete: List of values to autocomplete or proc that return the values add_to_history: [Boolean] Add the reply to the history, default: true
Instance Attribute Summary
Attributes inherited from Basic
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Basic
Constructor Details
This class inherits a constructor from Clin::LineReader::Basic
Class Method Details
.available? ⇒ Boolean
11 12 13 |
# File 'lib/clin/line_reader/readline.rb', line 11 def self.available? Clin.use_readline? end |