ReQL::AbstractValue
Inherits Comparable / Struct / Value / Object
Constructors
new
SourceInstance methods
<=>(other : AbstractValue)
The comparison operator. Returns 0 if the two objects are equal,
a negative number if this object is considered less than other,
a positive number if this object is considered greater than other,
or nil if the two objects are not comparable.
Subclasses define this method to provide class-specific ordering.
The comparison operator is usually used to sort values:
# Sort in a descending way:
[3, 1, 2].sort { |x, y| y <=> x } # => [3, 2, 1]
# Sort in an ascending way:
[3, 1, 2].sort { |x, y| x <=> y } # => [1, 2, 3]
array_or_nil_value
Sourcearray_or_set_or_nil_value
Sourcearray_or_set_value
Sourcearray_or_set_value?
Sourcearray_value
Sourcearray_value?
Sourceas_database
Sourceas_datum
Sourceas_function
Sourceas_row
Sourceas_table
Sourcebool_or_nil_value
Sourcebool_value
Sourcebool_value?
Sourcebytes_or_nil_value
Sourcebytes_value
Sourcebytes_value?
Sourceeach
Sourcefloat64_value
Sourcehash_or_nil_value
Sourcehash_value
Sourcehash_value?
Sourceinitialize
Sourceint64_value
Sourceis_array?
Sourceis_array_or_set?
Sourceis_bool?
Sourceis_bytes?
Sourceis_hash?
Sourceis_number?
Sourceis_set?
Sourceis_string?
Sourcenumber_or_nil_value
Sourcenumber_value
Sourcenumber_value?
Sourceserialize
Sourceset_or_nil_value
Sourceset_value
Sourceset_value?
Sourcestring_or_nil_value
Sourcestring_value
Sourcestring_value?
Sourceto_json(io)
Sourcevalue
SourceMacros
value_cast(method_name, type, expected_reql_type)
Source