class DaedalSL::BoolFilter

Public Class Methods

new(parent, options) click to toggle source
Calls superclass method DaedalSL::BlockQuery::new
# File lib/daedal-sl/bool_filter.rb, line 4
def initialize(parent, options)
  @query_type = Daedal::Filters::BoolFilter
  super
end

Public Instance Methods

must() { || ... } click to toggle source
# File lib/daedal-sl/bool_filter.rb, line 9
def must
  if (result = yield)
    @base.must << result
  end
end
must_not() { || ... } click to toggle source
# File lib/daedal-sl/bool_filter.rb, line 21
def must_not
  if (result = yield)
    @base.must_not << result
  end
end
should() { || ... } click to toggle source
# File lib/daedal-sl/bool_filter.rb, line 15
def should
  if (result = yield)
    @base.should << result
  end
end