Class: TextElements::LineBreak
- Inherits:
-
Element
- Object
- Element
- TextElements::LineBreak
- Defined in:
- lib/reparcs/elements/text_elements.rb
Overview
A Line break ‘<br />’ Use: Insert a blank line.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ LineBreak
constructor
Create a new LineBreak element, takes a optional hash of attributes as parameter.
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 |