Module: Elasticsearch::DSL::Search::BaseCompoundFilterComponent::EnumerableMethods
- Defined in:
- lib/elasticsearch/dsl/search/base_compound_filter_component.rb
Overview
Implements the Enumerable methods
Instance Method Summary collapse
- #<<(value) ⇒ Object
- #each(&block) ⇒ Object
- #empty? ⇒ Boolean
- #size ⇒ Object
- #slice(*args) ⇒ Object (also: #[])
Instance Method Details
#<<(value) ⇒ Object
88 89 90 |
# File 'lib/elasticsearch/dsl/search/base_compound_filter_component.rb', line 88 def <<(value) @value << value end |
#each(&block) ⇒ Object
76 77 78 |
# File 'lib/elasticsearch/dsl/search/base_compound_filter_component.rb', line 76 def each(&block) @value.each(&block) end |
#empty? ⇒ Boolean
92 93 94 |
# File 'lib/elasticsearch/dsl/search/base_compound_filter_component.rb', line 92 def empty? @value.empty? end |
#size ⇒ Object
84 85 86 |
# File 'lib/elasticsearch/dsl/search/base_compound_filter_component.rb', line 84 def size @value.size end |
#slice(*args) ⇒ Object Also known as: []
80 81 82 |
# File 'lib/elasticsearch/dsl/search/base_compound_filter_component.rb', line 80 def slice(*args) @value.slice(*args) end |