class OoxmlParser::DocxDrawingDistanceFromText
Docx Drawing Distance From Text
Attributes
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/drawing_properties/docx_drawing_distance_from_text.rb, line 11 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
Parse DocxDrawingDistanceFromText
object @param node [Nokogiri::XML:Element] node to parse @return [DocxDrawingDistanceFromText] result of parsing