# -*- coding: utf-8 -*- cwd = File.expand_path( File.join( File.dirname(__FILE__), "..", "..", "lib" ) ) $:.unshift(cwd) unless $:.include?(cwd) require 'treevisitor' include TreeVisitor dtw = DirTreeWalker.new( :ignore => ".git" ) dtw.run ".." do on_visit_leaf_node do |pathname| puts pathname end end