Sha256: 210bf5197d526b51076bb6ede3f90fc3d4324759905bd93e58c5d094b766a533

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

require File.dirname(__FILE__) + '/tree/factory'

module TodoNext

  class Tree
    attr_accessor :children

    def initialize
      @children = []
    end

    def visit(visitor)
      children.collect do |node|
        visitor.visit(node, level=1)
      end
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
todo_next-0.0.1 lib/todo_next/tree.rb