Class: Plurimath::XMLEngine::Ox
- Inherits:
-
Object
- Object
- Plurimath::XMLEngine::Ox
- Defined in:
- lib/plurimath/xml_engine/ox.rb
Class Method Summary collapse
- .dump(data, **options) ⇒ Object
- .is_xml_comment?(node) ⇒ Boolean
- .load(data) ⇒ Object
- .new_element(name) ⇒ Object
Class Method Details
.dump(data, **options) ⇒ Object
15 16 17 |
# File 'lib/plurimath/xml_engine/ox.rb', line 15 def dump(data, **) ::Ox.dump(data, **) end |
.is_xml_comment?(node) ⇒ Boolean
23 24 25 |
# File 'lib/plurimath/xml_engine/ox.rb', line 23 def is_xml_comment?(node) node.is_a?(::Ox::Comment) end |
.load(data) ⇒ Object
19 20 21 |
# File 'lib/plurimath/xml_engine/ox.rb', line 19 def load(data) ::Ox.load(data, strip_namespace: true) end |
.new_element(name) ⇒ Object
11 12 13 |
# File 'lib/plurimath/xml_engine/ox.rb', line 11 def new_element(name) ::Ox::Element.new(name) end |