Class: Rmega::Nodes::Trash

Inherits:
Node
  • Object
show all
Includes:
Traversable
Defined in:
lib/rmega/nodes/trash.rb

Instance Attribute Summary

Attributes inherited from Node

#data, #session

Instance Method Summary collapse

Methods included from Traversable

#children, #empty?, #files, #folders, #parent

Methods inherited from Node

#attributes, #decrypted_file_key, #file_key, #file_keys, #handle, #initialize, #name, #parent_handle, #process_shared_key, #public_handle, #public_url, #public_url=, #shared_root?, #type

Methods included from Loggable

#logger

Constructor Details

This class inherits a constructor from Rmega::Nodes::Node

Instance Method Details

#empty!Object


9
10
11
12
13
14
15
# File 'lib/rmega/nodes/trash.rb', line 9

def empty!
  children.each do |node|
    node.delete if node.respond_to?(:delete)
  end

  empty?
end