Methods
Attributes
| [RW] | separator |
Class Public methods
new(*list)
Link
Instance Public methods
def_options(opt)
Link
# File tool/vpath.rb, line 54 def def_options(opt) opt.on("-I", "--srcdir=DIR", "add a directory to search path") {|dir| @additional << dir } opt.on("-L", "--vpath=PATH LIST", "add directories to search path") {|dirs| @additional << [dirs] } opt.on("--path-separator=SEP", /\A(?:\W\z|\.(\W).+)/, "separator for vpath") {|sep, vsep| # hack for msys make. @separator = vsep || sep } end
foreach(file, *args, &block)
Link
list()
Link
# File tool/vpath.rb, line 67 def list @additional.reject! do |dirs| case dirs when String @list << dirs when Array raise "--path-separator option is needed for vpath list" unless @separator # @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"]) @list.concat(dirs[0].split(@separator)) end true end @list end
open(*args)
Link
process(*args, &block)
Link
read(*args)
Link
search(meth, base, *rest)
Link