Class: Bundler::Thor::LineEditor::Basic
- Inherits:
-
Object
- Object
- Bundler::Thor::LineEditor::Basic
- Defined in:
- lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prompt, options) ⇒ Basic
constructor
A new instance of Basic.
- #readline ⇒ Object
Constructor Details
#initialize(prompt, options) ⇒ Basic
Returns a new instance of Basic.
10 11 12 13 |
# File 'lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb', line 10 def initialize(prompt, ) @prompt = prompt = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb', line 4 def end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
4 5 6 |
# File 'lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb', line 4 def prompt @prompt end |
Class Method Details
.available? ⇒ Boolean
6 7 8 |
# File 'lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb', line 6 def self.available? true end |
Instance Method Details
#readline ⇒ Object
15 16 17 18 |
# File 'lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb', line 15 def readline $stdout.print(prompt) get_input end |