Sha256: 32310679162a3ab2bdcd288965046ba298d6d8979a74dc5167187a254a2d1074
Contents?: true
Size: 567 Bytes
Versions: 4
Compression:
Stored size: 567 Bytes
Contents
module OoxmlParser # Class for parsing `fld` tags class TextField < OOXMLDocumentObject attr_accessor :id, :type, :text # Parse TextField object # @param node [Nokogiri::XML:Element] node to parse # @return [TextField] result of parsing def parse(node) @id = node.attribute('id').value @type = node.attribute('type').value node.xpath('*').each do |text_field_node_child| case text_field_node_child.name when 't' @text = text_field_node_child.text end end self end end end
Version data entries
4 entries across 4 versions & 1 rubygems