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
valto this argument's values. -
#<<(newValue)
Appends
newValto 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))
Sets all of the values for this argument in one go.
-
#setValues!(vals)
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))
Sets all of the values for this argument in one go.
-
#values=(vals)
Sets all of the values for this argument in one go.
Instance methods inherited from module RemiLib::Args::MultiValArgument
<<(newValue)
<<,
setValues!(vals)
setValues!,
times : Int32
times,
times=(times : Int32)
times=,
values
values,
values=(vals)
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)
longName=,
shortName : Char?
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_i.
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.