Class: Roby::Interface::Command
Overview
A command on an CommandLibrary
Instance Attribute Summary collapse
-
#arguments ⇒ Hash<Symbol,CommandArgument>
readonly
The set of arguments for this command.
-
#description ⇒ Array<String>
readonly
The command description.
-
#name ⇒ Symbol
readonly
The command name.
Instance Method Summary collapse
- #droby_dump(peer) ⇒ Object
-
#initialize(name, description, arguments = {}) ⇒ Command
constructor
A new instance of Command.
Constructor Details
Instance Attribute Details
#arguments ⇒ Hash<Symbol,CommandArgument> (readonly)
Returns the set of arguments for this command.
14 15 16 |
# File 'lib/roby/interface/command.rb', line 14 def arguments @arguments end |
#description ⇒ Array<String> (readonly)
Returns the command description. The first element of the array is used as a command summary.
11 12 13 |
# File 'lib/roby/interface/command.rb', line 11 def description @description end |
#name ⇒ Symbol (readonly)
Returns the command name.
8 9 10 |
# File 'lib/roby/interface/command.rb', line 8 def name @name end |
Instance Method Details
#droby_dump(peer) ⇒ Object
20 21 22 |
# File 'lib/roby/interface/command.rb', line 20 def droby_dump(peer) self end |