class Pathname

Public Instance Methods

glob(rel_path, *args) { |self| ... } click to toggle source
# File lib/xmigra.rb, line 44
def glob(rel_path, *args, &block)
  if block_given?
    Pathname.glob(self + rel_path, *args) {|p| yield self + p}
  else
    Pathname.glob(self + rel_path, *args).map {|p| self + p}
  end
end