Class: Udb::ExtensionTerm::ComparisonOp

Inherits:
T::Enum
  • Object
show all
Includes:
Comparable
Defined in:
lib/udb/logic.rb

Constant Summary collapse

Equal =
new("=")
GreaterThanOrEqual =
new(">=")
GreaterThan =
new(">")
LessThanOrEqual =
new("<=")
LessThan =
new("<")
Compatible =
new("~>")

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


123
124
125
# File 'lib/udb/logic.rb', line 123

def eql?(other)
  (self <=> other) == 0
end

#hashObject



127
# File 'lib/udb/logic.rb', line 127

def hash = serialize.hash