class ParamsReady::Query::OperatorCoder

Public Class Methods

coerce(value, context) click to toggle source
# File lib/params_ready/query/variable_operator_predicate.rb, line 46
def self.coerce(value, context)
  return value if value.class == Class && value < PredicateOperator
  identifier = value.to_sym
  PredicateRegistry.operator(identifier, context)
end
format(value, intent) click to toggle source
# File lib/params_ready/query/variable_operator_predicate.rb, line 52
def self.format(value, intent)
  intent.hash_key(value)
end
strict_default?() click to toggle source
# File lib/params_ready/query/variable_operator_predicate.rb, line 56
def self.strict_default?
  false
end