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
-
#delete ⇒ Object
CRUD.
-
#exist? ⇒ Boolean
Attributes.
Methods inherited from Entry
#==, #created_at, #destroy, #dir, #dir?, #entry, #eql?, #file, #file?, #get, #hash, #initialize, #inspect, #local?, #name, #parent, #remove, #set, #tmp, #updated_at
Constructor Details
This class inherits a constructor from Vfs::Entry
Instance Method Details
#copy_to(to, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/vfs/entries/universal_entry.rb', line 9 def copy_to to, = {} from = file? ? to_file : to_dir from.copy_to to, end |
#delete ⇒ Object
CRUD.
16 17 18 |
# File 'lib/vfs/entries/universal_entry.rb', line 16 def delete delete_entry end |
#exist? ⇒ Boolean
Attributes.
5 6 7 |
# File 'lib/vfs/entries/universal_entry.rb', line 5 def exist? !!get end |