class

GenericSearch

Inherits Enumerable / Reference / Object

Constructors

new(logger : Logger = Logger.new(STDOUT))
Source

Instance methods

[](i, j)
Source
each

Must yield this collection's elements to the block.

Source
first

Returns the first element in the collection. Raises Enumerable::EmptyError if the collection is empty.

([1, 2, 3]).first   # => 1
([] of Int32).first # raises Enumerable::EmptyError
Source
last
Source
query(q, options = {} of String => String)
Source
query2options(env)
Source
size

Returns the number of elements in the collection.

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