Sha256: e8aee98c01bc1d1c9d2444cda52225d640956f374fa8368905fab9499d2994fd

Contents?: true

Size: 439 Bytes

Versions: 19

Compression:

Stored size: 439 Bytes

Contents

module Chewy
  class Query
    module Nodes
      class Expr < Base
        def & other
          Nodes::And.new self, other
        end

        def | other
          Nodes::Or.new self, other
        end

        def !
          Nodes::Not.new self
        end

        def ~
          @options[:cache] = true
          self
        end

        def __render__
          raise NotImplementedError
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
chewy-0.8.4 lib/chewy/query/nodes/expr.rb
chewy-0.8.3 lib/chewy/query/nodes/expr.rb
chewy-0.8.2 lib/chewy/query/nodes/expr.rb
chewy-0.8.1 lib/chewy/query/nodes/expr.rb
chewy-0.8.0 lib/chewy/query/nodes/expr.rb
chewy-0.7.0 lib/chewy/query/nodes/expr.rb
chewy-0.6.2 lib/chewy/query/nodes/expr.rb
chewy-0.6.1 lib/chewy/query/nodes/expr.rb
chewy-0.6.0 lib/chewy/query/nodes/expr.rb
chewy-0.5.2 lib/chewy/query/nodes/expr.rb
chewy-0.5.1 lib/chewy/query/nodes/expr.rb
chewy-0.5.0 lib/chewy/query/nodes/expr.rb
chewy-0.4.1 lib/chewy/query/nodes/expr.rb
chewy-0.4.0 lib/chewy/query/nodes/expr.rb
chewy-0.3.0 lib/chewy/query/nodes/expr.rb
chewy-0.2.4 lib/chewy/query/nodes/expr.rb
chewy-0.2.2 lib/chewy/query/nodes/expr.rb
chewy-0.2.0 lib/chewy/query/nodes/expr.rb
chewy-0.1.0 lib/chewy/query/nodes/expr.rb