Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- lib/proxyfs.rb
Instance Method Summary collapse
Instance Method Details
#[](name) ⇒ Object
5 6 7 8 9 10 11 |
# 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 |