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)


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

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

#hashObject



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

def hash = serialize.hash