class Oak::Tree(T)
- Oak::Tree(T)
- Reference
- Object
Included Modules
- Comparable(Oak::Tree(T))
- Enumerable(Oak::Result(T))
Defined in:
oak/tree.crConstructors
Instance Method Summary
-
#add(path : String, payload : T)
Adds a path to the tree.
-
#each(*args, **options)
Iterate over each result
-
#each(*args, **options, &)
Iterate over each result
-
#find(path)
Finds the first matching result.
-
#key : String
The key of the current tree branch
-
#results
Lists all the results possible within the entire tree.
-
#search(path)
Searchs the Tree and returns all results as an array.
-
#search(path, &block : Result(T) -> _)
Searches the Tree and yields each result to the block.
-
#visualize
Returns a string visualization of the Radix tree
Constructor Detail
Instance Method Detail
Searches the Tree and yields each result to the block.