class GenericSearch
- GenericSearch
- Reference
- Object
Included Modules
- Enumerable(String)
Direct Known Subclasses
Defined in:
search/engines/generic_search.crConstructors
Instance Method Summary
- #[](i, j)
-
#each(&)
Must yield this collection's elements to the block.
-
#first
Returns the first element in the collection.
- #last
- #query(q, options = {} of String => String)
- #query2options(env)
-
#size
Returns the number of elements in the collection.
Constructor Detail
Instance Method Detail
def each(&)
#
Description copied from module Enumerable(String)
Must yield this collection's elements to the block.
def first
#
Description copied from module Enumerable(String)
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
def size
#
Description copied from module Enumerable(String)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4