Class: Vfs::Storages::Local

Inherits:
Object
  • Object
show all
Includes:
LocalVfsHelper
Defined in:
lib/vfs/storages/local.rb

Defined Under Namespace

Modules: LocalVfsHelper Classes: Writer

Constant Summary

Constants included from LocalVfsHelper

LocalVfsHelper::DEFAULT_BUFFER

Instance Attribute Summary

Attributes included from LocalVfsHelper

#buffer

Instance Method Summary collapse

Methods included from LocalVfsHelper

#attributes, #create_dir, #delete_dir, #delete_file, #each_entry, #local?, #read_file, #set_attributes, #tmp, #to_s, #write_file

Constructor Details

#initialize(root = '') ⇒ Local

Returns a new instance of Local.



173
174
175
# File 'lib/vfs/storages/local.rb', line 173

def initialize root = ''
  @root = root
end

Instance Method Details

#closeObject



180
# File 'lib/vfs/storages/local.rb', line 180

def close; end

#open(&block) ⇒ Object



177
178
179
# File 'lib/vfs/storages/local.rb', line 177

def open &block
  block.call self if block
end