struct Oak::Tree(T)

Defined in:

oak/tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(path, payload) #

Add a path to the tree.


[View source]
def find(path) #

Find the first matching result in the tree.


[View source]
def initialize #

[View source]
def search(path) #

Search the tree and return all results as an array.


[View source]
def search(path, &block : Result(T) -> _) #

Search the tree and yield each result to the block.


[View source]
def visualize #

Visualize the radix tree structure.


[View source]