Sha256: b5cd5f8aa39e6c9959d69cc8322e468c9dcaeb67e8e726c5be614ce21b3dd152
Contents?: true
Size: 581 Bytes
Versions: 37
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for parsing <item> tag class Item < OOXMLDocumentObject # @return [Integer] index of item attr_reader :index # @return [Symbol] type of item attr_reader :type # Parse `<item>` tag # # @param [Nokogiri::XML:Element] node with Item data # @return [item] def parse(node) node.attributes.each do |key, value| case key when 'x' @index = value.value.to_i when 't' @type = value.value.to_sym end end self end end end
Version data entries
37 entries across 37 versions & 1 rubygems