Class: ViewAssets::StyleSheetAssets
- Inherits:
-
AssetsFinder
- Object
- Struct
- AssetsFinder
- ViewAssets::StyleSheetAssets
- Defined in:
- lib/view_assets/css_assets.rb
Overview
TODO add rspec examples
Instance Attribute Summary
Attributes inherited from AssetsFinder
#action_name, #controller_name, #root
Instance Method Summary collapse
Methods inherited from AssetsFinder
#action_assets, #all, #all_assets, #controller_assets, #full, #initialize, #retrieve, #retrieved?, #verify
Constructor Details
This class inherits a constructor from ViewAssets::AssetsFinder
Instance Method Details
#asset_extension ⇒ Object
9 10 11 |
# File 'lib/view_assets/css_assets.rb', line 9 def asset_extension 'css' end |
#asset_type ⇒ Object
13 14 15 |
# File 'lib/view_assets/css_assets.rb', line 13 def asset_type 'stylesheet' end |
#assets_path ⇒ Object
4 5 6 7 |
# File 'lib/view_assets/css_assets.rb', line 4 def assets_path # 'assets/javascripts' 'stylesheets' end |
#tag(css_href) ⇒ Object
17 18 19 |
# File 'lib/view_assets/css_assets.rb', line 17 def tag(css_href) "<link href='#{css_href}' media='screen' rel='stylesheet' />" end |