Sha256: 758c8b0134b3179d87ab4a26c831d0a76dc26925929203493cfa4f54f37c58a0
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
module OoxmlParser # Class for parsing `settings.xml` file class DocumentSettings < OOXMLDocumentObject # @return [OoxmlSize] size of default tab attr_accessor :default_tab_stop # Parse Settings object # @return [DocumentSettings] result of parsing def parse doc = Nokogiri::XML(File.open(OOXMLDocumentObject.path_to_folder + 'word/settings.xml')) doc.xpath('w:settings/*').each do |node_child| case node_child.name when 'defaultTabStop' @default_tab_stop = OoxmlSize.new.parse(node_child) end end self end end end
Version data entries
4 entries across 4 versions & 1 rubygems