Class: StylesheetElements::Style
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- StylesheetElements::Style
- Defined in:
- lib/reparcs/elements/stylesheet_elements.rb
Overview
A style element ‘<style></style>’
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Style
constructor
Creates a new Style element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Style
Creates a new Style element, takes an optional hash of attributes as parameter.
10 11 12 13 14 15 |
# File 'lib/reparcs/elements/stylesheet_elements.rb', line 10 def initialize(attrs={}) aattrs = ["id", "title", "dir", "xml:lang", "media", "type"] super("style", aattrs, [], attrs) @start_element = "<style" @end_element = "</style>" end |