Sha256: fbef14896a22ff3f29c96cac26e158a9c32caea75c8bd54802cc0337606223a3
Contents?: true
Size: 830 Bytes
Versions: 34
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true require 'avm/launcher/context/instance_manager/cached_instance' require 'eac_ruby_utils/core_ext' module Avm module Launcher class Context class InstanceManager class CachedInstances enable_simple_cache common_constructor :context, :content def instances content.keys.map { |k| by_logical_path(k).instance }.compact_blank end def by_logical_path(key) cached_instances[key].if_blank do cached_instances[key] = ::Avm::Launcher::Context::InstanceManager::CachedInstance.new( self, content.fetch(key) ) end end private def cached_instances_uncached {} end end end end end end
Version data entries
34 entries across 34 versions & 2 rubygems