Class: Avm::Data::UnitWithCommands

Inherits:
Unit
  • Object
show all
Defined in:
lib/avm/data/unit_with_commands.rb

Direct Known Subclasses

Instances::Data::Unit

Instance Method Summary collapse

Methods inherited from Unit

#clear, #dump, #load, #name

Instance Method Details

#dump_path_extensionString

Returns:

  • (String)


16
17
18
19
20
# File 'lib/avm/data/unit_with_commands.rb', line 16

def dump_path_extension
  singleton_class.const_get('EXTENSION')
rescue NameError
  ''
end

#dump_to_directory(directory, identifier) ⇒ Object



26
27
28
# File 'lib/avm/data/unit_with_commands.rb', line 26

def dump_to_directory(directory, identifier)
  dump(unit_on_directory_path(directory, identifier))
end

#installation_files_dataStruct(:key, :subpath)?

Returns:

  • (Struct(:key, :subpath), nil)


31
32
33
# File 'lib/avm/data/unit_with_commands.rb', line 31

def installation_files_data
  nil
end

#load_from_directory(directory, identifier) ⇒ Object



22
23
24
# File 'lib/avm/data/unit_with_commands.rb', line 22

def load_from_directory(directory, identifier)
  load(unit_on_directory_path(directory, identifier))
end