Inherits

Methods

kind

Returns :decimal

Returns:
Type Details
Symbol :decimal
See Also:

new

(value)

Coerces the value to BigDecimal

Parameters:
Name Type Details
value Object original value
Returns:
Type Details
BigDecimal value
See Also:

assert

(value, message = nil, &block)

Asserts that a given value is a BigDecimal

Void
Return value of this method is ignored.
Parameters:
Name Type Details
value Object value to be validated
message String (defaults to: nil) error message to use when assertion fails
Yield Returns:
Type Details
String error message to use when assertion fails
Raises:
Type Details
ArgumentError if the value is not a BigDecimal
See Also:

to_s

Returns "decimal"

Returns:
Type Details
String "decimal"
See Also: