Class: Kward::PluginRegistry::Command

Inherits:
Struct
  • Object
show all
Defined in:
lib/kward/plugin_registry.rb

Overview

Registered slash command exposed in completion, RPC command listings, and interactive command dispatch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argument_hintObject

Returns the value of attribute argument_hint

Returns:

  • (Object)

    the current value of argument_hint



14
15
16
# File 'lib/kward/plugin_registry.rb', line 14

def argument_hint
  @argument_hint
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



14
15
16
# File 'lib/kward/plugin_registry.rb', line 14

def description
  @description
end

#handlerObject

Returns the value of attribute handler

Returns:

  • (Object)

    the current value of handler



14
15
16
# File 'lib/kward/plugin_registry.rb', line 14

def handler
  @handler
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/kward/plugin_registry.rb', line 14

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



14
15
16
# File 'lib/kward/plugin_registry.rb', line 14

def path
  @path
end

Instance Method Details

#entryObject



15
16
17
# File 'lib/kward/plugin_registry.rb', line 15

def entry
  { name: name, description: description, argument_hint: argument_hint }
end