abstract struct ReQL::AbstractValue

Included Modules

Direct Known Subclasses

Defined in:

reql/executor/abstract_value.cr:8
reql/executor/abstract_value.cr:14

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

!=(other : RethinkDB::DSL::R) !=, %(other : RethinkDB::DSL::R) %, &(other : RethinkDB::DSL::R) &, *(other : RethinkDB::DSL::R) *, +(other : RethinkDB::DSL::R) +, -(other : RethinkDB::DSL::R) -, /(other : RethinkDB::DSL::R) /, <(other : RethinkDB::DSL::R) <, <=(other : RethinkDB::DSL::R) <=, ==(other : RethinkDB::DSL::R) ==, >(other : RethinkDB::DSL::R) >, >=(other : RethinkDB::DSL::R) >=, |(other : RethinkDB::DSL::R) |

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def <=>(other : AbstractValue) #
Description copied from module Comparable(Object)

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]

[View source]
def <=>(other) : Int32 #

[View source]
def array_or_nil_value #

[View source]
def array_or_set_or_nil_value #

[View source]
def array_or_set_value #

[View source]
def array_or_set_value? #

[View source]
def array_value #

[View source]
def array_value? #

[View source]
def as_database #

[View source]
def as_datum #

[View source]
def as_function #

[View source]
def as_row #

[View source]
def as_table #

[View source]
def bool_or_nil_value #

[View source]
def bool_value #

[View source]
def bool_value? #

[View source]
def bytes_or_nil_value #

[View source]
def bytes_value #

[View source]
def bytes_value? #

[View source]
def each(&) #

[View source]
def float64_value #

[View source]
def hash_or_nil_value #

[View source]
def hash_value #

[View source]
def hash_value? #

[View source]
def initialize #

[View source]
def int64_value #

[View source]
def is_array? #

[View source]
def is_array_or_set? #

[View source]
def is_bool? #

[View source]
def is_bytes? #

[View source]
def is_hash? #

[View source]
def is_number? #

[View source]
def is_set? #

[View source]
def is_string? #

[View source]
def number_or_nil_value #

[View source]
def number_value #

[View source]
def number_value? #

[View source]
def serialize #

[View source]
def set_or_nil_value #

[View source]
def set_value #

[View source]
def set_value? #

[View source]
def string_or_nil_value #

[View source]
def string_value #

[View source]
def string_value? #

[View source]
def to_json(io) #

[View source]
abstract def value : Type #

[View source]

Macro Detail

macro value_cast(method_name, type, expected_reql_type) #

[View source]