Method: Decode::Trie#traverse
- Defined in:
- lib/decode/trie.rb
#traverse(path = [], &block) ⇒ Object
Traverse the trie. See Decode::Trie::Node#traverse for details.
120 121 122 123 124 |
# File 'lib/decode/trie.rb', line 120 def traverse(path = [], &block) if node = @root.lookup(path) node.traverse(&block) end end |