Class: Postsvg::Translation::Handlers::OpenHandler
- Inherits:
-
Object
- Object
- Postsvg::Translation::Handlers::OpenHandler
- Defined in:
- lib/postsvg/translation/handlers/open_handler.rb
Class Method Summary collapse
-
.call(element, context) ⇒ Object
Unknown SVG element.
Class Method Details
.call(element, context) ⇒ Object
Unknown SVG element. Descend into children so known subtrees
still emit. Element base class guarantees a children
getter, so no capability check is needed.
10 11 12 13 14 |
# File 'lib/postsvg/translation/handlers/open_handler.rb', line 10 def self.call(element, context) element.children.each do |child| Postsvg::Translation::PsRenderer.default_registry.translate(child, context) end end |