class Dir

Public Instance Methods

[](name) click to toggle source
# File lib/proxyfs.rb, line 5
def [] name
  raise Errno::ENOENT unless include? name

  fpath = File.join(path, name)

  File.directory?(fpath) ? Dir.new(fpath) : File.open(fpath)
end