Class: MetaElements::Meta
- Inherits:
-
Element
- Object
- Element
- MetaElements::Meta
- Defined in:
- lib/reparcs/elements/meta_elements.rb
Overview
A meta element ‘<meta />’
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Meta
constructor
Creates a new Meta element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Meta
Creates a new Meta element, takes an optional hash of attributes as parameter.
10 11 12 13 14 15 16 17 18 |
# File 'lib/reparcs/elements/meta_elements.rb', line 10 def initialize(attrs={}) aattrs = [ "id", "dir", "xml:lang", "content", "http-equiv", "scheme" ] super("meta", aattrs, attrs) @start_element = "<meta" @end_element = " />" end |