class Marisa::Search

Included Modules

Defined in:

marisa/search.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(trie : Trie, prefix : String) #

Instance Method Detail

def each(&block : String -> ) #
Description copied from module Enumerable(String)

Must yield this collection's elements to the block.


def has_keys? : Bool #

def include?(key : String) : Bool #

def keys : Array(String) #

def reset_agent #

def search(prefix : String) : Search #

def size : Int32 #
Description copied from module Enumerable(String)

Returns the number of elements in the collection.

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

def with_prefixes(&block : String -> ) #