module Elasticsearch::DSL::Search::BaseCompoundFilterComponent::MethodDelegation

Public Instance Methods

method_missing(name, *args, &block) click to toggle source

Looks up the corresponding class for a method being invoked, and initializes it

@raise [NoMethodError] When the corresponding class cannot be found

Calls superclass method
# File lib/elasticsearch/dsl/search/base_compound_filter_component.rb, line 102
def method_missing(name, *args, &block)
  klass = Utils.__camelize(name)
  if Filters.const_defined? klass
    @value << Filters.const_get(klass).new(*args, &block)
  elsif @block
    @block.binding.eval('self').send(name, *args, &block)
  else
    super
  end
end