Sha256: 6c70ca74d9b8b1d4aca2e71c75642a89b35a28cb29d193c00544d5dcc7a78188
Contents?: true
Size: 838 Bytes
Versions: 14
Compression:
Stored size: 838 Bytes
Contents
module CloudSesame module Query module AST class MultiExpressionOperator < Operator include DSL::Base include DSL::BlockMethods include DSL::FieldMethods include DSL::FilterQueryMethods include DSL::OperatorMethods include DSL::RangeMethods include DSL::ScopeMethods def children @children ||= create_children end def compile "(#{ symbol }#{ boost } #{ children.compile })" unless children.empty? end def <<(object) children << object end def is_excluded children.map(&:is_excluded) end private def create_children array = FieldArray.new array.dsl_scope = dsl_scope array end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems