struct

ReQL::AbstractValue

Inherits Comparable / Struct / Value / Object

Constructors

Instance 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]
Source
<=>(other) : Int32
Source
array_or_nil_value
Source
array_or_set_or_nil_value
Source
array_or_set_value
Source
array_or_set_value?
Source
array_value
Source
array_value?
Source
as_database
Source
as_datum
Source
as_function
Source
as_row
Source
as_table
Source
bool_or_nil_value
Source
bool_value
Source
bool_value?
Source
bytes_or_nil_value
Source
bytes_value
Source
bytes_value?
Source
each
Source
float64_value
Source
hash_or_nil_value
Source
hash_value
Source
hash_value?
Source
initialize
Source
int64_value
Source
is_array?
Source
is_array_or_set?
Source
is_bool?
Source
is_bytes?
Source
is_hash?
Source
is_number?
Source
is_set?
Source
is_string?
Source
number_or_nil_value
Source
number_value
Source
number_value?
Source
serialize
Source
set_or_nil_value
Source
set_value
Source
set_value?
Source
string_or_nil_value
Source
string_value
Source
string_value?
Source
to_json(io)
Source
value
Source

Macros

value_cast(method_name, type, expected_reql_type)
Source

Nested types