Class: LSL::Completion::Mapping
- Includes:
- FromHash
- Defined in:
- lib/lsl/command/completion.rb
Instance Attribute Summary collapse
-
#command_matcher ⇒ Object
Returns the value of attribute command_matcher.
-
#option_generator ⇒ Object
Returns the value of attribute option_generator.
Instance Method Summary collapse
Instance Attribute Details
#command_matcher ⇒ Object
Returns the value of attribute command_matcher.
30 31 32 |
# File 'lib/lsl/command/completion.rb', line 30 def command_matcher @command_matcher end |
#option_generator ⇒ Object
Returns the value of attribute option_generator.
30 31 32 |
# File 'lib/lsl/command/completion.rb', line 30 def option_generator @option_generator end |
Instance Method Details
#match?(cmd) ⇒ Boolean
39 40 41 |
# File 'lib/lsl/command/completion.rb', line 39 def match?(cmd) cmd =~ command_matcher end |