Sha256: f8822bb6e7f3ed6d04f35a017b32decff18fe72dd07d65cd5625227e65fff3b1
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
require_relative 'xlsx_drawing_position/xlsx_drawing_position_parameters' module OoxmlParser class XlsxDrawingPosition attr_accessor :from, :to # Parse XlsxDrawingPosition # @param node [Nokogiri::XML::Element] node to parse # @return [XlsxDrawingPosition] value of XlsxDrawingPosition def self.parse(node) position = XlsxDrawingPosition.new node.xpath('*').each do |drawing_node_child| case drawing_node_child.name when 'from' position.from = XlsxDrawingPositionParameters.parse(drawing_node_child) when 'to' position.to = XlsxDrawingPositionParameters.parse(drawing_node_child) end end position end end end
Version data entries
2 entries across 2 versions & 1 rubygems