class RemiLib::Args::FloatArgument
- RemiLib::Args::FloatArgument
- RemiLib::Args::Argument
- Reference
- Object
Overview
An Argument
that expects a floating point number. This always stores its
value as a Float64
.
Included Modules
Defined in:
remilib/args/arg-types.crInstance Method Summary
-
#maximum : Float64
The maximum accepted value for this argument.
-
#maximum=(maximum : Float64)
The maximum accepted value for this argument.
-
#minimum : Float64
The minimum accepted value for this argument.
-
#minimum=(minimum : Float64)
The minimum accepted value for this argument.
-
#setValue!(newVal : Float64) : Nil
Sets the value of the argument.
-
#setValue!(val) : Nil
Sets the value of the argument.
-
#str : String
Returns the value of this argument as a string.
-
#value : Float64
Returns this argument's value.
-
#value=(val : Float64) : Nil
Sets the value of the argument.
-
#value=(val) : Nil
Sets the value of the argument.
Instance methods inherited from module RemiLib::Args::ValArgument
setValue!(val) : Nil
setValue!,
value
value,
value=(val) : Nil
value=
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
Sets the value of the argument. This is checked against the #minimum
and #maximum
. This does not set #called?
to true
.
Sets the value of the argument. This is checked against the #minimum
and #maximum
. This does not set #called?
to true
.
newVal
must respond to #to_f
.
Sets the value of the argument. This is checked against the #minimum
and #maximum
. This sets #called?
to true
.