Class: Rtt::Command
- Inherits:
-
Object
- Object
- Rtt::Command
- Defined in:
- lib/rtt/cmd_line_parser.rb
Direct Known Subclasses
ConfigureCommand, DeleteCommand, ExportCommand, ImportCommand, PauseCommand, QueryCommand, RenameCommand, ReportCommand, SetClientCommand, SetProjectCommand, SetUserCommand, StartCommand, StopCommand
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#optional ⇒ Object
Returns the value of attribute optional.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/rtt/cmd_line_parser.rb', line 4 def name @name end |
#optional ⇒ Object
Returns the value of attribute optional.
4 5 6 |
# File 'lib/rtt/cmd_line_parser.rb', line 4 def optional @optional end |
Instance Method Details
#next_optional ⇒ Object
6 7 8 |
# File 'lib/rtt/cmd_line_parser.rb', line 6 def next_optional optional.shift if optional.present? end |