Class: Rtt::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/rtt/cmd_line_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/rtt/cmd_line_parser.rb', line 4

def name
  @name
end

#optionalObject

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_optionalObject



6
7
8
# File 'lib/rtt/cmd_line_parser.rb', line 6

def next_optional
  optional.shift if optional.present?
end