Sha256: 462c6cba05851d4c396df3baf4df098eafa8eec2f707735e040e51d2b8b41d79
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
module OoxmlParser class TextField attr_accessor :id, :type, :text def self.parse(text_field_node) text_field = TextField.new text_field.id = text_field_node.attribute('id').value text_field.type = text_field_node.attribute('type').value text_field_node.xpath('*').each do |text_field_node_child| case text_field_node_child.name when 't' text_field.text = text_field_node_child.text end end text_field end end end
Version data entries
2 entries across 2 versions & 1 rubygems