Sha256: a44cfca444e72483a0a552bc690729cd94410150ac900b923c46d378a60bce6f
Contents?: true
Size: 798 Bytes
Versions: 46
Compression:
Stored size: 798 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Docx Drawing Distance From Text class DocxDrawingDistanceFromText < OOXMLDocumentObject attr_accessor :top, :bottom, :left, :right # Parse DocxDrawingDistanceFromText object # @param node [Nokogiri::XML:Element] node to parse # @return [DocxDrawingDistanceFromText] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'distT' @top = OoxmlSize.new(value.value.to_f, :emu) when 'distB' @bottom = OoxmlSize.new(value.value.to_f, :emu) when 'distL' @left = OoxmlSize.new(value.value.to_f, :emu) when 'distR' @right = OoxmlSize.new(value.value.to_f, :emu) end end self end end end
Version data entries
46 entries across 46 versions & 1 rubygems