Class: Emfsvg::Svg::OpenElement

Inherits:
Element
  • Object
show all
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

Instance Method Summary collapse

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

#childrenObject (readonly)

Returns the value of attribute children.



58
59
60
# File 'lib/emfsvg/svg/element.rb', line 58

def children
  @children
end

#nameObject (readonly)

Returns the value of attribute name.



58
59
60
# File 'lib/emfsvg/svg/element.rb', line 58

def name
  @name
end