Method: Lono::Completer#found?

Defined in:
lib/lono/completer.rb

#found?(command) ⇒ Boolean

Returns:

  • (Boolean)


112
113
114
115
# File 'lib/lono/completer.rb', line 112

def found?(command)
  public_methods = @command_class.public_instance_methods(false)
  command && public_methods.include?(command.to_sym)
end