Class: TestLink::Command::Argument

Inherits:
Object
  • Object
show all
Defined in:
lib/test_link/command/argument.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultObject (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

Returns:

  • (Boolean)


26
27
28
# File 'lib/test_link/command/argument.rb', line 26

def mandatory?
  @mandatory
end