Class: Kward::PluginRegistry::Command
- Inherits:
-
Struct
- Object
- Struct
- Kward::PluginRegistry::Command
- 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
-
#argument_hint ⇒ Object
Returns the value of attribute argument_hint.
-
#description ⇒ Object
Returns the value of attribute description.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#argument_hint ⇒ Object
Returns the value of attribute argument_hint
20 21 22 |
# File 'lib/kward/plugin_registry.rb', line 20 def argument_hint @argument_hint end |
#description ⇒ Object
Returns the value of attribute description
20 21 22 |
# File 'lib/kward/plugin_registry.rb', line 20 def description @description end |
#handler ⇒ Object
Returns the value of attribute handler
20 21 22 |
# File 'lib/kward/plugin_registry.rb', line 20 def handler @handler end |
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/kward/plugin_registry.rb', line 20 def name @name end |
#path ⇒ Object
Returns the value of attribute path
20 21 22 |
# File 'lib/kward/plugin_registry.rb', line 20 def path @path end |
Instance Method Details
#entry ⇒ Object
21 22 23 |
# File 'lib/kward/plugin_registry.rb', line 21 def entry { name: name, description: description, argument_hint: argument_hint } end |