Method: Ark::CLI::Argument#value

Defined in:
lib/ark/cli/argument.rb

#valueObject

Return the value for this argument. The default value will be returned if the argument is unset and the default is non-nil. If the argument is unset and there is no default, return nil.



80
81
82
83
84
85
86
# File 'lib/ark/cli/argument.rb', line 80

def value
  if @value.nil?
    return @default
  else
    return @value
  end
end