module CloudSesame::Query::DSL::BlockStyledOperators

Public Instance Methods

all(options = {}, &block)
Alias for: and
and(options = {}, &block) click to toggle source

CLAUSE: AND

# File lib/cloud_sesame/query/dsl/block_styled_operators.rb, line 8
def and(options = {}, &block)
        _block_style_clause AST::And, options, &block
end
Also aliased as: all, and!
and!(options = {}, &block)
Alias for: and
any(options = {}, &block)
Alias for: or
or(options = {}, &block) click to toggle source

CLAUSE: OR

# File lib/cloud_sesame/query/dsl/block_styled_operators.rb, line 17
def or(options = {}, &block)
        _block_style_clause AST::Or, options, &block
end
Also aliased as: any, or!
or!(options = {}, &block)
Alias for: or

Private Instance Methods

_block_style_clause(klass, options, &block) click to toggle source
# File lib/cloud_sesame/query/dsl/block_styled_operators.rb, line 26
def _block_style_clause(klass, options, &block)
        node = klass.new _context, options
        if block_given?
                _block_domain(block)._eval node, _scope, _return, &block
        else
                Domain::ChainingBlock.new node, _scope, (_return if _scope.is_a?(AST::Root)), _block_domain(nil)
        end
end