Sha256: 81807347fa4cb58c0044fac46eda2e79a1c42ba94d7364e1ab442c4991187ede
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true require 'avm/data/unit_with_commands' require 'eac_ruby_utils/core_ext' module Avm module Instances module Data class Unit < ::Avm::Data::UnitWithCommands common_constructor :instance # @return [Pathname] def data_default_dump_path instance.data_default_dump_path.to_pathname.basename_sub('.*') do |b| "#{b}_#{identifier}#{dump_path_extension}" end end # @return [String] def identifier instance.data_package.units.key(self) || raise("No identifier found for #{self}") end def load(...) instance.on_disabled_processes { super } end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
avm-0.92.0 | lib/avm/instances/data/unit.rb |
eac_tools-0.91.0 | sub/avm/lib/avm/instances/data/unit.rb |