Sha256: cf80d5affd0d70225a5a8be45776036ba9af28d7c910a212d7b78b7144726a5b

Contents?: true

Size: 334 Bytes

Versions: 7

Compression:

Stored size: 334 Bytes

Contents

module CloudSesame
  module Query
    module AST
      class Not < SingleExpressionOperator
				SYMBOL = :not

        def <<(object)
          object.is_excluded
          super
        end

        def compile(detailed = nil)
          "(#{ symbol  }#{ boost } #{ child.compile })" if child
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
CloudSesame-0.3.6 lib/cloud_sesame/query/ast/not.rb
CloudSesame-0.3.5 lib/cloud_sesame/query/ast/not.rb
CloudSesame-0.3.4 lib/cloud_sesame/query/ast/not.rb
CloudSesame-0.3.3 lib/cloud_sesame/query/ast/not.rb
CloudSesame-0.3.2 lib/cloud_sesame/query/ast/not.rb
CloudSesame-0.3.1 lib/cloud_sesame/query/ast/not.rb
CloudSesame-0.3.0 lib/cloud_sesame/query/ast/not.rb