Class: TestLink::Command::Argument
- Inherits:
-
Object
- Object
- TestLink::Command::Argument
- Defined in:
- lib/test_link/command/argument.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
Instance Method Summary collapse
-
#initialize(default = nil, mandatory = false) ⇒ Argument
constructor
A new instance of Argument.
- #mandatory? ⇒ Boolean
Constructor Details
#initialize(default = nil, mandatory = false) ⇒ Argument
Returns a new instance of Argument.
21 22 23 24 |
# File 'lib/test_link/command/argument.rb', line 21 def initialize(default = nil, mandatory = false) @default = default @mandatory = mandatory end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
19 20 21 |
# File 'lib/test_link/command/argument.rb', line 19 def default @default end |
Instance Method Details
#mandatory? ⇒ Boolean
26 27 28 |
# File 'lib/test_link/command/argument.rb', line 26 def mandatory? @mandatory end |