Sha256: 4034978257931fda77ace383f089377ac782c797f0dad2989bc643dea1e4d8d0
Contents?: true
Size: 833 Bytes
Versions: 284
Compression:
Stored size: 833 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 }.reject(&: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
284 entries across 284 versions & 3 rubygems