Class: Plurimath::XMLEngine::Ox

Inherits:
Object
  • Object
show all
Defined in:
lib/plurimath/xml_engine/ox.rb

Class Method Summary collapse

Class Method Details

.dump(data, **options) ⇒ Object



15
16
17
# File 'lib/plurimath/xml_engine/ox.rb', line 15

def dump(data, **options)
  ::Ox.dump(data, **options)
end

.is_xml_comment?(node) ⇒ Boolean

Returns:

  • (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