Class: Vfs::UniversalEntry
- Defined in:
- lib/vfs/entries/universal_entry.rb
Instance Attribute Summary
Attributes inherited from Entry
Instance Method Summary collapse
- #copy_to(to, options = {}) ⇒ Object
-
#destroy ⇒ Object
CRUD.
-
#exist? ⇒ Boolean
Attributes.
Methods inherited from Entry
#==, #created_at, #dir, #dir?, #entry, #eql?, #file, #file?, #get, #hash, #initialize, #inspect, #local?, #name, #parent, #set, #tmp, #updated_at
Constructor Details
This class inherits a constructor from Vfs::Entry
Instance Method Details
#copy_to(to, options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/vfs/entries/universal_entry.rb', line 11 def copy_to to, = {} from = file? ? to_file : to_dir from.copy_to to, end |
#destroy ⇒ Object
CRUD
20 21 22 |
# File 'lib/vfs/entries/universal_entry.rb', line 20 def destroy destroy_entry end |
#exist? ⇒ Boolean
Attributes
6 7 8 |
# File 'lib/vfs/entries/universal_entry.rb', line 6 def exist? !!get end |