Class: Avm::Data::UnitWithCommands
- Inherits:
-
Unit
- Object
- Unit
- Avm::Data::UnitWithCommands
show all
- Defined in:
- lib/avm/data/unit_with_commands.rb
Instance Method Summary
collapse
Methods inherited from Unit
#clear, #dump, #load, #name
Instance Method Details
#dump_path_extension ⇒ String
15
16
17
18
19
|
# File 'lib/avm/data/unit_with_commands.rb', line 15
def dump_path_extension
singleton_class.const_get('EXTENSION')
rescue NameError
''
end
|
#dump_to_directory(directory, identifier) ⇒ Object
25
26
27
|
# File 'lib/avm/data/unit_with_commands.rb', line 25
def dump_to_directory(directory, identifier)
dump(unit_on_directory_path(directory, identifier))
end
|
#installation_files_data ⇒ Struct(:key, :subpath)?
30
31
32
|
# File 'lib/avm/data/unit_with_commands.rb', line 30
def installation_files_data
nil
end
|
#load_from_directory(directory, identifier) ⇒ Object
21
22
23
|
# File 'lib/avm/data/unit_with_commands.rb', line 21
def load_from_directory(directory, identifier)
load(unit_on_directory_path(directory, identifier))
end
|