Class: Bond::Input
- Inherits:
-
String
- Object
- String
- Bond::Input
- Defined in:
- lib/bond/input.rb
Overview
A string representing the last word the user has typed. This string is passed to a mission action to generate possible completions. This string contains a number of attributes from the matching mission, useful in generating completions.
Instance Attribute Summary (collapse)
-
- (Object) argument
Current argument number and array of argument strings.
-
- (Object) arguments
Current argument number and array of argument strings.
-
- (Object) line
readonly
The full line the user has typed.
-
- (Object) matched
readonly
MatchData object from the matching mission (Mission#matched).
-
- (Object) object
Actual object a user has just typed.
Instance Attribute Details
- (Object) argument
Current argument number and array of argument strings. Used by MethodMission.
11 12 13 |
# File 'lib/bond/input.rb', line 11 def argument @argument end |
- (Object) arguments
Current argument number and array of argument strings. Used by MethodMission.
11 12 13 |
# File 'lib/bond/input.rb', line 11 def arguments @arguments end |
- (Object) line (readonly)
The full line the user has typed.
13 14 15 |
# File 'lib/bond/input.rb', line 13 def line @line end |
- (Object) matched (readonly)
MatchData object from the matching mission (Mission#matched).
9 10 11 |
# File 'lib/bond/input.rb', line 9 def matched @matched end |
- (Object) object
Actual object a user has just typed. Used by MethodMission and ObjectMission.
7 8 9 |
# File 'lib/bond/input.rb', line 7 def object @object end |