Class: HaveAPI::Fs::Components::SaveInstance
- Inherits:
-
Executable
- Object
- HaveAPI::Fs::Component
- File
- Executable
- HaveAPI::Fs::Components::SaveInstance
- Defined in:
- lib/haveapi/fs/components/save_instance.rb
Instance Attribute Summary
Attributes inherited from HaveAPI::Fs::Component
#atime, #context, #ctime, #mtime
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(resource_dir, *args) ⇒ SaveInstance
constructor
A new instance of SaveInstance.
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, #invalid?, #invalidate, #parent, #path, #readable?, #reset, #setup, #times, #title, #unsaved?, #use, #writable?
Constructor Details
#initialize(resource_dir, *args) ⇒ SaveInstance
Returns a new instance of SaveInstance.
3 4 5 6 |
# File 'lib/haveapi/fs/components/save_instance.rb', line 3 def initialize(resource_dir, *args) super(*args) @resource_dir = resource_dir end |
Instance Method Details
#exec ⇒ Object
7 8 9 |
# File 'lib/haveapi/fs/components/save_instance.rb', line 7 def exec @resource_dir.save end |