class RemiLib::Args::MultiFloatArgument
- RemiLib::Args::MultiFloatArgument
- RemiLib::Args::Argument
- Reference
- Object
Overview
Similar to a FloatArgument
, except that it can be called multiple times.
Included Modules
Defined in:
remilib/args/arg-types.crInstance Method Summary
-
#<<(val : Float64)
Appends
newVal
to this argument's values. -
#<<(newValue)
Appends
newVal
to this argument's values. -
#maximum : Float64
The maximum for all accepted values for this argument.
-
#maximum=(maximum : Float64)
The maximum for all accepted values for this argument.
-
#minimum : Float64
The minimum for all accepted values for this argument.
-
#minimum=(minimum : Float64)
The minimum for all accepted values for this argument.
-
#setValues!(vals : Array(Float64)) : Nil
Sets all of the values for this argument in one go.
-
#setValues!(vals) : Nil
Sets all of the values for this argument in one go.
-
#str : String
Returns all values stored in this argument as a string.
-
#values : Array(Float64)
Returns the values stored in this argument.
-
#values=(vals : Array(Float64)) : Nil
Sets all of the values for this argument in one go.
-
#values=(vals) : Nil
Sets all of the values for this argument in one go.
Instance methods inherited from module RemiLib::Args::MultiValArgument
<<(newValue)
<<,
setValues!(vals) : Nil
setValues!,
times : Int32
times,
times=(times : Int32)
times=,
values
values,
values=(vals) : Nil
values=
Instance methods inherited from class RemiLib::Args::Argument
callback : ArgCallbackFunc | Nil
callback,
callback=(callback : ArgCallbackFunc | Nil)
callback=,
called? : Bool
called?,
group : String
group,
group=(group : String)
group=,
help : String
help,
help=(help : String)
help=,
longName : String
longName,
longName=(newName : String) : Nil
longName=,
shortName : Char | Nil
shortName,
shortName=(shortName : Char | Nil)
shortName=
Constructor methods inherited from class RemiLib::Args::Argument
new(newLongName, shortName : Char | Nil = nil, group : String = "", help : String = "")
new
Instance Method Detail
Appends newVal
to this argument's values. newVal
will be validated
against #constraint
first. This sets #called
to true
, and increases
#times
by one.
Appends newVal
to this argument's values. newVal
will be validated
against #constraint
first. This sets #called
to true
, and increases
#times
by one.
newValue
must respond to #to_f
.
Sets all of the values for this argument in one go. All arguments will be
checked against the minimum and maximum. This does not set #called?
to
true
and does not set #times
.
Sets all of the values for this argument in one go. All arguments will be
checked against the minimum and maximum. This does not set #called?
to
true
and does not set #times
.
Sets all of the values for this argument in one go. All arguments will be
checked against the minimum and maximum. This sets #called?
to true
,
and sets #times
.
Sets all of the values for this argument in one go. All arguments will be
checked against the minimum and maximum. This sets #called?
to true
,
and sets #times
.