class

Xapian::Mset

Inherits Enumerable < Iterable < Reference < Object

Constructors

new(mset : LibXapian::Mset)
Source

Instance methods

each

Must return an Iterator over the elements in this collection.

Source
each

Must yield this collection's elements to the block.

Source
empty?

Returns true if self does not contain any element.

([] of Int32).empty? # => true
([1]).empty?         # => false
[nil, false].empty?  # => false
  • #present? returns the inverse.
Source
map

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]
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
to_unsafe
Source

Nested types