Class: Avm::Tools::Runner::Instance::Data::Unit

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/tools/runner/instance/data/unit.rb,
lib/avm/tools/runner/instance/data/unit/dump.rb,
lib/avm/tools/runner/instance/data/unit/load.rb,
lib/avm/tools/runner/instance/data/unit/clear.rb

Defined Under Namespace

Classes: Clear, Dump, Load

Instance Method Summary collapse

Instance Method Details

#available_units_idsEnumerable<String>

Returns:

  • (Enumerable<String>)


21
22
23
# File 'lib/avm/tools/runner/instance/data/unit.rb', line 21

def available_units_ids
  data_package.units_ids
end

#data_ownerAvm::Instances::Data::Unit

Returns:

  • (Avm::Instances::Data::Unit)


31
32
33
# File 'lib/avm/tools/runner/instance/data/unit.rb', line 31

def data_owner
  data_package.unit(parsed.identifier)
end

#data_packageAvm::Instances::Data::Package

Returns:

  • (Avm::Instances::Data::Package)


26
27
28
# File 'lib/avm/tools/runner/instance/data/unit.rb', line 26

def data_package
  runner_context.call(:instance).data_package
end

#help_extra_textString

Returns:

  • (String)


36
37
38
# File 'lib/avm/tools/runner/instance/data/unit.rb', line 36

def help_extra_text
  help_join_sections(super, list_section('Available units', available_units_ids))
end