Method: StringTree::Node#all_partials

Defined in:
lib/stringtree/node.rb

#all_partials(str = "") ⇒ Object

Return an Array of Strings of all possible partial string from this node. Optionally, use the given prefix String str.



210
211
212
213
214
# File 'lib/stringtree/node.rb', line 210

def all_partials(str = "")
  list = []      
  @down.walk(str) { |str| list << str } unless @down.nil?
  list
end