lib/vfs/vfs.rb in vfs-0.3.12 vs lib/vfs/vfs.rb in vfs-0.3.13
- old
+ new
@@ -1,31 +1,31 @@
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
+ entry dir file
entries dirs files
- [] /
+ [] /
tmp
).each do |m|
script = <<-RUBY
def #{m} *a, &b
to_entry.#{m} *a, &b
\ No newline at end of file