instance method
cache_as
Ruby on Rails 2.2.3
Since v1.0.3 Last seen in v2.2.3 PrivateSignature
cache_as(name)
No documentation comment.
Parameters
-
namereq
Source
# File lib/importmap/map.rb, line 200
def cache_as(name)
if result = @cache[name.to_s]
result
else
@cache[name.to_s] = yield
end
end
Defined in lib/importmap/map.rb line 200
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Map