Sha256: 98f95287d576b1e3c4cf6d3c7b603be233b73f27b1d41cb5ac075a2363eda61c
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
cwd = File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) ) $:.unshift(cwd) unless $:.include?(cwd) require 'treevisitor' include TreeVisitor class MyVisitor < TreeNodeVisitor def visit_leaf_node( pathname ) puts pathname end end dtw = DirTreeWalker.new( ".." ) dtw.ignore ".git" dtw.run( MyVisitor.new )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
treevisitor-0.1.5 | examples/print_files.rb |
treevisitor-0.1.4 | examples/print_files.rb |