Class: PresentationElements::HorizontalRule

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

Overview

A horizontal rule element.

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ HorizontalRule

Creates a new HorizontalRule element, takes an optional hash of attributes as parameter.



62
63
64
65
66
67
68
69
70
71
72
# File 'lib/reparcs/elements/presentation_elements.rb', line 62

def initialize(attrs={})
  aattrs = [
    "class", "id", "title", "dir", "xml:lang",
    "onclick", "ondblclick", "onkeydown", "onkeypress",
    "onkeyup", "onmousedown", "onmousemove", "onmouseout",
    "onmouseover", "onmouseup"
  ]
  super("hr", aattrs, attrs)
  @start_element = "<hr"
  @end_element = " />"
end