Sha256: ad56be480cc5b59b8f3f055c3ab44be6ef82dad1e2dc3a42f6a21f0127bc91af
Contents?: true
Size: 742 Bytes
Versions: 4
Compression:
Stored size: 742 Bytes
Contents
require_relative 'point/text_value' module OoxmlParser # Class for parsing `c:pt` object class Point < OOXMLDocumentObject # @return [Integer] index of point attr_accessor :index # @return [TextValue] value of text attr_accessor :text # Parse PointCount # @param [Nokogiri::XML:Node] node with PointCount # @return [PointCount] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'idx' @index = value.value.to_f end end node.xpath('*').each do |node_child| case node_child.name when 'v' @text = TextValue.new(parent: self).parse(node_child) end end self end end end
Version data entries
4 entries across 4 versions & 1 rubygems