Class: TextElements::LineBreak

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

Overview

A Line break ‘<br />’ Use: Insert a blank line.

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ LineBreak

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



108
109
110
111
112
113
# File 'lib/reparcs/elements/text_elements.rb', line 108

def initialize(attrs={})
  aattrs = ["class", "id", "title"]
  super("br", aattrs, attrs)
  @start_element = "<br"
  @end_element = " />"
end