class Cassandra::Types::Float
Inherits
Methods
kind
Returns :float
new
(value)Coerces the value to Float
assert
(value, message = nil, &block)Asserts that a given value is a Float
- Void
- Return value of this method is ignored.
to_s
Returns "float"
Asserts that a given value is a Float
| Name | Type | Details |
|---|---|---|
| value | Object |
value to be validated |
| message | String |
(defaults to: nil)
error message to use when assertion
fails
|
| Type | Details |
|---|---|
String |
error message to use when assertion fails |
| Type | Details |
|---|---|
ArgumentError |
if the value is not a Float |