Sha256: a5b6970b5a38a26ab88ba66fcb26fe13d905463826a2a52e830f7731f9ecd456
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
module Vfs class << self def default_storage ::Vfs::Storages::Local.new end def to_entry '/'.to_entry end def to_file to_entry.file end def to_dir to_entry.dir end # def [] path # to_entry[path] # end # alias_method :/, :[] %w( entry dir file entries dirs files [] / tmp ).each do |m| script = <<-RUBY def #{m} *a, &b to_entry.#{m} *a, &b end RUBY eval script, binding, __FILE__, __LINE__ end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vfs-0.3.15 | lib/vfs/vfs.rb |
vfs-0.3.14 | lib/vfs/vfs.rb |
vfs-0.3.13 | lib/vfs/vfs.rb |