Sha256: d256c99ddb3cf2c04f17c4ca7a886685478343cea85bc8d88cb8e9ae399d8c80
Contents?: true
Size: 633 Bytes
Versions: 49
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for parsing `sldSz` tag class SlideSize < OOXMLDocumentObject attr_accessor :width, :height, :type # Parse SlideSize object # @param node [Nokogiri::XML:Element] node to parse # @return [Bookmark] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'cx' @width = OoxmlSize.new(value.value.to_f, :emu) when 'cy' @height = OoxmlSize.new(value.value.to_f, :emu) when 'type' @type = value.value.to_sym end end self end end end
Version data entries
49 entries across 49 versions & 1 rubygems