Class: ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag
- Inherits:
-
AssetIncludeTag
- Object
- AssetIncludeTag
- ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag
- Includes:
- TagHelper
- Defined in:
- actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
Constant Summary
Constant Summary
Constants included from TagHelper
Instance Attribute Summary
Attributes inherited from AssetIncludeTag
Instance Method Summary (collapse)
- - (Object) asset_name
- - (Object) asset_tag(source, options)
- - (Object) custom_dir
- - (Object) extension
Methods included from TagHelper
#cdata_section, #content_tag, #escape_once, #tag
Methods included from ActiveSupport::Concern
#append_features, extended, #included
Methods included from CaptureHelper
#capture, #content_for, #content_for?, #flush_output_buffer, #with_output_buffer
Methods inherited from AssetIncludeTag
#include_tag, inherited, #initialize
Constructor Details
This class inherits a constructor from ActionView::Helpers::AssetTagHelper::AssetIncludeTag
Instance Method Details
- (Object) asset_name
13 14 15 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 13 def asset_name 'stylesheet' end |
- (Object) asset_tag(source, options)
21 22 23 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 21 def asset_tag(source, ) tag("link", { "rel" => "stylesheet", "type" => Mime::CSS, "media" => "screen", "href" => ERB::Util.html_escape(path_to_asset(source)) }.merge(), false, false) end |
- (Object) custom_dir
25 26 27 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 25 def custom_dir config.stylesheets_dir end |
- (Object) extension
17 18 19 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 17 def extension 'css' end |