Class: HaveAPI::Fs::Components::DirectoryReset

Inherits:
Executable show all
Defined in:
lib/haveapi/fs/components/directory_reset.rb

Instance Attribute Summary

Attributes inherited from HaveAPI::Fs::Component

#atime, #context, #ctime, #mtime

Instance Method Summary collapse

Methods inherited from Executable

#executable?, #read, #writable?, #write

Methods inherited from File

#file?, #raw_close, #raw_open, #raw_read, #raw_sync, #raw_truncate, #raw_write, #read, #size, #write

Methods inherited from HaveAPI::Fs::Component

#abspath, #bound=, #bound?, children_reader, component, #contents, #directory?, #executable?, #file?, #find, inherited, #initialize, #invalid?, #invalidate, #parent, #path, #readable?, #reset, #setup, #times, #title, #unsaved?, #use, #writable?

Constructor Details

This class inherits a constructor from HaveAPI::Fs::Component

Instance Method Details

#execObject



3
4
5
6
# File 'lib/haveapi/fs/components/directory_reset.rb', line 3

def exec
  parent.reset
  true
end