Class: DYI::Stylesheet::StyleReference
- Defined in:
- lib/dyi/stylesheet.rb
Overview
Instance Attribute Summary collapse
-
#href ⇒ String
readonly
A path of external style-sheet file.
Attributes inherited from Style
#body, #content_type, #media, #title
Instance Method Summary collapse
-
#include_external_file? ⇒ Boolean
Returns whether this script contains reference of external style-sheet file.
-
#initialize(href, content_type = 'text/css', options = {}) ⇒ StyleReference
constructor
A new instance of StyleReference.
Methods inherited from Style
#has_uri_reference?, #write_as
Constructor Details
#initialize(href, content_type = 'text/css', options = {}) ⇒ StyleReference
Returns a new instance of StyleReference.
73 74 75 76 |
# File 'lib/dyi/stylesheet.rb', line 73 def initialize(href, content_type='text/css', ={}) super(nil, content_type, ) @href = href end |
Instance Attribute Details
#href ⇒ String (readonly)
Returns a path of external style-sheet file.
71 72 73 |
# File 'lib/dyi/stylesheet.rb', line 71 def href @href end |
Instance Method Details
#include_external_file? ⇒ Boolean
Returns whether this script contains reference of external style-sheet file.
81 82 83 |
# File 'lib/dyi/stylesheet.rb', line 81 def include_external_file? true end |