Inherits

Methods

self.

new

(name)

Returns a new instance of Custom

name

Returns the value of attribute name

new

(*value)

Coerces a given value to this type

Parameters:
Name Type Details
value *Object value to be coerced
Returns:
Type Details
Object a value of this type
Raises:
Type Details
::NotImplementedError

assert

(value, message = nil, &block)

Asserts that a given value is of this type

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 invalid

to_s

Returns a cassandra representation of this type

Returns:
Type Details
String a cassandra representation of this type

hash

eql?

(other) aliased as: ==
Returns:
Type Details
Boolean