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)


118
119
120
# File 'lib/udb/logic.rb', line 118

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

#hashObject



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

def hash = serialize.hash