Sha256: 46760d3efbb330934d9cbb2d0569b9bea08d754bf3a47343f89c297e42261dd5
Contents?: true
Size: 700 Bytes
Versions: 4
Compression:
Stored size: 700 Bytes
Contents
module CloudSesame module Query module AST class SingleExpressionOperator < Operator DETAILED = false attr_accessor :child def is_for(field, options = {}) child.is_for field, options if child end def is_excluded child.is_excluded if child end def <<(object) self.child = object end def compile(_detailed = nil) if child && (compiled = child.compile operator_detailed) && !compiled.empty? "(#{ symbol }#{ boost } #{ compiled })" end end def operator_detailed self.class::DETAILED end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems