Class: MetaElements::Meta

Inherits:
Element
  • Object
show all
Defined in:
lib/reparcs/elements/meta_elements.rb

Overview

A meta element ‘<meta />’

Instance Method Summary collapse

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