Class: Assets::Environment::Static
- Inherits:
-
Assets::Environment
- Object
- Assets::Environment
- Assets::Environment::Static
- Defined in:
- lib/assets/environment/static.rb
Overview
Static enviornment with precompiled assets
Instance Method Summary collapse
-
#get(name) ⇒ Asset?
private
Return asset.
-
#index ⇒ Hash
private
Return index.
Methods inherited from Assets::Environment
Instance Method Details
#get(name) ⇒ Asset?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return asset
32 33 34 |
# File 'lib/assets/environment/static.rb', line 32 def get(name) index[name] end |
#index ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return index
13 14 15 16 17 |
# File 'lib/assets/environment/static.rb', line 13 def index assets.each_with_object({}) do |asset, index| index[asset.name]=asset end end |