Method: Parse::Constraint.register

Defined in:
lib/parse/query/constraint.rb

.register(op, klass = self) ⇒ Object

Note:

All subclasses should register their operation and themselves.

Register the given operand for this Parse::Constraint subclass.

Parameters:



98
99
100
101
# File 'lib/parse/query/constraint.rb', line 98

def register(op, klass = self)
  self.operand ||= op
  Operation.register op, klass
end