Sha256: f0530d56fbf6e9dc5c9be7184bd0fc4040fb4ea9af09ddeeb068e613ffca1f81
Contents?: true
Size: 645 Bytes
Versions: 15
Compression:
Stored size: 645 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 end end end end
Version data entries
15 entries across 15 versions & 2 rubygems