Class: RubyXL::RawOOXML

Inherits:
OOXMLObject show all
Defined in:
lib/rubyXL/objects/extensions.rb

Overview

Direct Known Subclasses

AlternateContent, Extension

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OOXMLObject

#add_to_zip, #before_write_xml, define_attribute, define_child_node, define_element_name, #dup, filepath, #index_in_collection, #initialize, obtain_class_variable, parse_file, set_countable, set_namespaces

Constructor Details

This class inherits a constructor from RubyXL::OOXMLObject

Instance Attribute Details

#raw_xmlObject

Returns the value of attribute raw_xml.



7
8
9
# File 'lib/rubyXL/objects/extensions.rb', line 7

def raw_xml
  @raw_xml
end

Class Method Details

.parse(node) ⇒ Object



9
10
11
12
13
# File 'lib/rubyXL/objects/extensions.rb', line 9

def self.parse(node)
  obj = new
  obj.raw_xml = node.to_xml
  obj
end

Instance Method Details

#write_xml(xml, node_name_override = nil) ⇒ Object



15
16
17
# File 'lib/rubyXL/objects/extensions.rb', line 15

def write_xml(xml, node_name_override = nil)
  self.raw_xml
end