Sha256: 0c726b38a3292a5387db72d944858aa407e1479744adf87c0400057f60a68e3b
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
require File.dirname(__FILE__) + '/tree/factory' require File.dirname(__FILE__) + '/tree/visitor/example_remover_visitor' require File.dirname(__FILE__) + '/tree/visitor/rspec_generator' require File.dirname(__FILE__) + '/tree/visitor/leaf_maker' module TodoNext class Tree attr_accessor :children def initialize @children = [] end def visit(visitor) result = [] children.each do |node| result << visitor.visit(node, level=1, parent=self) end result end def to_rspec visit(TodoNext::Tree::Visitor::RspecGenerator.new).flatten.join("\n") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
todo_next-0.0.2 | lib/todo_next/tree.rb |