class Importmap::Map
def cache_as(name)
def cache_as(name) if result = instance_variable_get("@cached_#{name}") result else instance_variable_set("@cached_#{name}", yield) end end
def cache_as(name) if result = instance_variable_get("@cached_#{name}") result else instance_variable_set("@cached_#{name}", yield) end end