Class: ObjectElements::Object
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- ObjectElements::Object
- Defined in:
- lib/reparcs/elements/object_elements.rb
Overview
A Object element ‘<object></object>’
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Object
constructor
Create a new object element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Object
Create a new object element, takes an optional hash of attributes as parameter.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/reparcs/elements/object_elements.rb', line 10 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style", "classid", "codebase", "codetype", "data", "type", "archive", "declare", "standby", "height", "width", "tabindex" ] childs = [ "a", "abbr", "acronym", "b", "bdo", "big", "br", "button", "cite", "code", "del", "dfn", "em", "i", "img", "input", "ins", "kbd", "label", "map", "object", "param", "q", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "textarea", "tt", "var" ] super("object", aattrs, childs, attrs) @start_element = "<object" @end_element = "</object>" end |