Class: RHC::AutoComplete
Instance Attribute Summary collapse
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(runner = ::Commander::Runner.instance, shell = 'bash') ⇒ AutoComplete
constructor
A new instance of AutoComplete.
- #to_s ⇒ Object
Constructor Details
#initialize(runner = ::Commander::Runner.instance, shell = 'bash') ⇒ AutoComplete
Returns a new instance of AutoComplete.
5 6 7 |
# File 'lib/rhc/autocomplete.rb', line 5 def initialize(runner=::Commander::Runner.instance, shell='bash') @runner, @shell = runner, shell end |
Instance Attribute Details
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
3 4 5 |
# File 'lib/rhc/autocomplete.rb', line 3 def runner @runner end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/rhc/autocomplete.rb', line 9 def to_s @s ||= template.result AutoCompleteBindings.new(self).get_binding end |