Class: Plurimath::XmlEngine::Ox
- Inherits:
-
Object
- Object
- Plurimath::XmlEngine::Ox
- Defined in:
- lib/plurimath/xml_engine/ox.rb,
lib/plurimath/xml_engine/ox/element.rb
Defined Under Namespace
Classes: Element
Class Method Summary collapse
- .dump(data, **options) ⇒ Object
- .is_xml_comment?(node) ⇒ Boolean
- .load(data) ⇒ Object
- .new_element(name) ⇒ Object
- .replace_nodes(root, nodes) ⇒ Object
Class Method Details
.dump(data, **options) ⇒ Object
16 17 18 |
# File 'lib/plurimath/xml_engine/ox.rb', line 16 def dump(data, **) ::Ox.dump(data.xml_nodes, **) end |
.is_xml_comment?(node) ⇒ Boolean
26 27 28 29 30 |
# File 'lib/plurimath/xml_engine/ox.rb', line 26 def is_xml_comment?(node) return node.is_xml_comment? if node.is_a?(Element) false end |
.load(data) ⇒ Object
20 21 22 23 24 |
# File 'lib/plurimath/xml_engine/ox.rb', line 20 def load(data) Element.new( ::Ox.load(data, strip_namespace: true), ) end |