Sha256: b001b9b097887c951f4bd45941ce4aab25a172de9cc47b8fd058d30cef344649
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
require File.dirname(__FILE__) + '/base' module TodoNext::Tree::Visitor class LeafMaker < Base def process_terminal_node(curr_node, level, parent) end def process_non_terminal_node(curr_node, level, parent) if curr_node.has_children? visit_children_of(curr_node, level) else curr_node.make_me_a_leaf end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
todo_next-0.0.2 | lib/todo_next/tree/visitor/leaf_maker.rb |