class Xapian::Mset
- Xapian::Mset
- Reference
- Object
Included Modules
- Enumerable({UInt32, Xapian::Document})
- Iterable({UInt32, Xapian::Document})
Defined in:
xapian/mset.crConstructors
Instance Method Summary
-
#each
Must return an
Iterator
over the elements in this collection. -
#each(& : Tuple(Document::Id, Document) -> ) : Nil
Must yield this collection's elements to the block.
-
#empty?
Returns
true
ifself
does not contain any element. -
#map(&block : Document::Id, Document -> {UInt32, Xapian::Document}) forall T
Returns an
Array
with the results of running the block against each element of the collection. -
#size
Returns the number of elements in the collection.
- #to_unsafe : LibXapian::Mset
Constructor Detail
Instance Method Detail
def each
#
Description copied from module Iterable({UInt32, Xapian::Document})
Must return an Iterator
over the elements in this collection.
Description copied from module Enumerable({UInt32, Xapian::Document})
Must yield this collection's elements to the block.
def empty?
#
Description copied from module Enumerable({UInt32, Xapian::Document})
Returns true
if self
does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?
returns the inverse.
Description copied from module Enumerable({UInt32, Xapian::Document})
Returns an Array
with the results of running the block against each element of the collection.
[1, 2, 3].map { |i| i * 10 } # => [10, 20, 30]
def size
#
Description copied from module Enumerable({UInt32, Xapian::Document})
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4