Class: ParamsReady::Query::OperatorCoder
Class Method Summary
collapse
instance
#strict_default?, #try_coerce
value_class_name
#class_reader_writer
Class Method Details
.coerce(value, context) ⇒ Object
46
47
48
49
50
|
# 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
|
52
53
54
|
# File 'lib/params_ready/query/variable_operator_predicate.rb', line 52
def self.format(value, intent)
intent.hash_key(value)
end
|
.strict_default? ⇒ Boolean
56
57
58
|
# File 'lib/params_ready/query/variable_operator_predicate.rb', line 56
def self.strict_default?
false
end
|