Module: OpenSearch::DSL::Search::BaseCompoundFilterComponent::EnumerableMethods

Defined in:
lib/opensearch/dsl/search/base_compound_filter_component.rb

Overview

Implements the Enumerable methods

Instance Method Summary collapse

Instance Method Details

#<<(value) ⇒ Object



97
98
99
# File 'lib/opensearch/dsl/search/base_compound_filter_component.rb', line 97

def <<(value)
  @value << value
end

#each(&block) ⇒ Object



85
86
87
# File 'lib/opensearch/dsl/search/base_compound_filter_component.rb', line 85

def each(&block)
  @value.each(&block)
end

#empty?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/opensearch/dsl/search/base_compound_filter_component.rb', line 101

def empty?
  @value.empty?
end

#sizeObject



93
94
95
# File 'lib/opensearch/dsl/search/base_compound_filter_component.rb', line 93

def size
  @value.size
end

#slice(*args) ⇒ Object Also known as: []



89
90
91
# File 'lib/opensearch/dsl/search/base_compound_filter_component.rb', line 89

def slice(*args)
  @value.slice(*args)
end