class LSL::Completion::Mapping
Attributes
command_matcher[RW]
option_generator[RW]
Public Instance Methods
match?(cmd)
click to toggle source
# File lib/lsl/command/completion.rb, line 39 def match?(cmd) cmd =~ command_matcher end
options()
click to toggle source
# File lib/lsl/command/completion.rb, line 31 def options res = if option_generator.kind_of?(String) base.shell.run(option_generator).result else option_generator.call end [res].flatten.select { |x| x } end