Inherits

Methods

new

(*value)

Coerces the value to Set

Examples:
Creating a set using splat arguments
include Cassandra::Types

set(varchar).new('Jane', 'Alice', 'Loren') => #<Set: {"Jane", "Alice", "Loren"}>
Coercing an existing set
include Cassandra::Types

set(varchar).new(Set['Jane', 'Alice', 'Loren']) => #<Set: {"Jane", "Alice", "Loren"}>
Coercing an array
include Cassandra::Types

set(varchar).new(['Jane', 'Alice', 'Loren']) => #<Set: {"Jane", "Alice", "Loren"}>
Parameters:
Name Type Details
value Object original value
Returns:
Type Details
Set value
See Also:

assert

(value, message = nil, &block)

Asserts that a given value is an Set

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 an Set
See Also:

to_s

Returns "set<type>"

Returns:
Type Details
String "set<type>"
See Also:

hash

eql?

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