Class: HammerCLI::CompleterLine
- Inherits:
-
Array
- Object
- Array
- HammerCLI::CompleterLine
- Defined in:
- lib/hammer_cli/completer.rb
Overview
Instance Method Summary collapse
- #complete? ⇒ Boolean
-
#initialize(line) ⇒ CompleterLine
constructor
A new instance of CompleterLine.
Constructor Details
#initialize(line) ⇒ CompleterLine
Returns a new instance of CompleterLine.
45 46 47 48 |
# File 'lib/hammer_cli/completer.rb', line 45 def initialize(line) @line = line super(split_line) end |
Instance Method Details
#complete? ⇒ Boolean
50 51 52 |
# File 'lib/hammer_cli/completer.rb', line 50 def complete? self.empty? || self.last.complete? end |