class RemiLib::Args::MultiIntArgument
- RemiLib::Args::MultiIntArgument
- RemiLib::Args::Argument
- Reference
- Object
Overview
Similar to an IntArgument
, except that it can be called multiple times.
Included Modules
Defined in:
remilib/args/arg-types.crInstance Method Summary
-
#<<(val : Int64)
Appends
val
to this argument's values. -
#<<(newValue)
Appends
newVal
to this argument's values. -
#maximum : Int64
The maximum for all accepted values for this argument.
-
#maximum=(maximum : Int64)
The maximum for all accepted values for this argument.
-
#minimum : Int64
The minimum for all accepted values for this argument.
-
#minimum=(minimum : Int64)
The minimum for all accepted values for this argument.
-
#setValues!(vals : Array(Int64)) : 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(Int64)
Returns the values stored in this argument.
-
#values=(vals : Array(Int64)) : 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 val
to this argument's values. val
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_i64
.
The maximum for all accepted values for this argument.
The minimum for all accepted values for this argument.
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
, but does set #times
. It does not check #minimum
and
#maximum
.
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
, but does set #times
. It does not check #minimum
and
#maximum
.
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
.