Sha256: 0a9afe86ed0b960449c2d9ea5ecc5e126be04abc9b7b876e1a9372a73a5285b8
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 Bytes
Contents
module OoxmlParser # Class for parsing `t` tags class Text < OOXMLDocumentObject # @return [Symbol] space values attr_reader :space # @return [String] text value attr_reader :text # Parse Text object # @param node [Nokogiri::XML:Element] node to parse # @return [Text] result of parsing def parse(node) @text = node.text node.attributes.each do |key, value| case key when 'space' @space = value_to_symbol(value) end end self end end end
Version data entries
3 entries across 3 versions & 1 rubygems