Method: RubyXL::OOXMLTopLevelObject.set_namespaces
- Defined in:
- lib/rubyXL/objects/ooxml_object.rb
.set_namespaces(namespace_hash) ⇒ Object
Sets the list of namespaces on this object to be added when writing out XML. Valid only on top-level objects.
Parameters
-
namespace_hash- Hash of namespaces in the form of"url" => "prefix"
Examples
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => nil,
'http://schemas.openxmlformats.org/officeDocument/2006/relationships' => 'r')
442 443 444 |
# File 'lib/rubyXL/objects/ooxml_object.rb', line 442 def self.set_namespaces(namespace_hash) self.class_variable_set(:@@ooxml_namespaces, namespace_hash) end |