Sha256: cc9b57bd39f8fd04e9308ef2a3dfe353c4d591f1c4b36e48ddb42c31b238eac2
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
# -*- coding: utf-8 -*- # # std lib # require 'pathname' require 'yaml' # # rubygems # # require 'rubygems' # rubygems must be loaded from binary file to not modify $LOAD_PATH require 'json' # # treevisitor # module TreeVisitor def self.version cwd = Pathname(__FILE__).dirname.expand_path.to_s yaml = YAML.load_file(cwd + '/../VERSION.yml') major = (yaml['major'] || yaml[:major]).to_i minor = (yaml['minor'] || yaml[:minor]).to_i patch = (yaml['patch'] || yaml[:patch]).to_i "#{major}.#{minor}.#{patch}" end end require "treevisitor/abs_node" require 'treevisitor/leaf_node' require 'treevisitor/tree_node' require 'treevisitor/basic_tree_node_visitor' require 'treevisitor/tree_node_visitor' require 'treevisitor/directory_walker' # # visitors # require 'treevisitor/visitors/block_tree_node_visitor' require 'treevisitor/visitors/build_dir_tree_visitor' require 'treevisitor/visitors/callback_tree_node_visitor' require 'treevisitor/visitors/callback_tree_node_visitor2' require 'treevisitor/visitors/clone_tree_node_visitor' require 'treevisitor/visitors/depth_tree_node_visitor' require 'treevisitor/visitors/print_dir_tree_visitor' require 'treevisitor/visitors/directory_to_hash_visitor' require 'treevisitor/util/dir_processor'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
treevisitor-0.2.1 | lib/treevisitor.rb |
treevisitor-0.2.0 | lib/treevisitor.rb |