Class: Emfsvg::Svg::OpenElement
- Defined in:
- lib/emfsvg/svg/element.rb
Overview
Fallback for unknown SVG element types. Carries the element name so handlers can skip it or warn; carries children so traversal still descends into known subtrees.
Constant Summary collapse
- ELEMENT_NAME =
"open"
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, children: []) ⇒ OpenElement
constructor
A new instance of OpenElement.
Methods inherited from Element
#clip_path, #element_name, from_node, register
Constructor Details
#initialize(name:, children: []) ⇒ OpenElement
Returns a new instance of OpenElement.
60 61 62 63 |
# File 'lib/emfsvg/svg/element.rb', line 60 def initialize(name:, children: []) @name = name @children = children.freeze end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
58 59 60 |
# File 'lib/emfsvg/svg/element.rb', line 58 def children @children end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
58 59 60 |
# File 'lib/emfsvg/svg/element.rb', line 58 def name @name end |