module OpenSearch::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
# File lib/opensearch/dsl/search/base_compound_filter_component.rb, line 111 def method_missing(name, *args, &block) klass = Utils.__camelize(name) if Filters.const_defined? klass @value << Filters.const_get(klass).new(*args, &block) else raise NoMethodError, "undefined method '#{name}' for #{self}" end end