class Assets::Environment::Static
Static
enviornment with precompiled assets
Public Instance Methods
get(name)
click to toggle source
Return asset
@param [String] name
name of asset
@return [Asset]
if found
@return [nil]
otherwise
@api private
# File lib/assets/environment/static.rb, line 32 def get(name) index[name] end
index()
click to toggle source
Return index
@return [Hash]
@api private
# File lib/assets/environment/static.rb, line 13 def index assets.each_with_object({}) do |asset, index| index[asset.name]=asset end end