Class: TextElements::BlockQuote
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TextElements::BlockQuote
- Defined in:
- lib/reparcs/elements/text_elements.rb
Overview
A block quote element ‘<blockquote></blockquote>’ Use: Define a long quotation.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ BlockQuote
constructor
Create a new BlockQuote element, takes a optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ BlockQuote
Create a new BlockQuote element, takes a optional hash of attributes as parameter.
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/reparcs/elements/text_elements.rb', line 86 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "cite" ] childs = [ "address", "blockquote", "del", "div", "fieldset", "form", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ol", "p", "pre", "script", "table", "ul" ] super("blockquote", aattrs, childs, attrs) @start_element = "<blockquote" @end_element = "</blockquote>" end |