Class: StructureElements::Head

Inherits:
ContainerElement
  • Object
show all
Defined in:
lib/reparcs/elements/structure_elements.rb

Overview

A head element ‘<head></head>’ Use: Define a documents head, when you create a

'Page' object a head element is automatically
added for you, you can access it via pageO_obj.head

Instance Method Summary collapse

Constructor Details

#initializeHead

Create a new head element, takes a optional hash of attributes as parameter



42
43
44
45
46
47
48
# File 'lib/reparcs/elements/structure_elements.rb', line 42

def initialize
  attrs = ["id", "dir", "xml:lang", "profile"]
  childs = ["base", "link", "meta", "object", "script", "style", "title"]
  super("head", attrs, childs)
  @start_element = "<head"
  @end_element = "</head>"
end