Sha256: e7a2dbaf329660cc9a8e5dd1652e13bd3551026d82ad5888036541ff0422d430
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 Bytes
Contents
module OoxmlParser class ParagraphTab < OOXMLDocumentObject attr_accessor :align, :position def initialize(align, position) @align = align @position = position end def self.parse(tabs_node) tabs = [] tabs_node.xpath('a:tab').each do |tab_node| tabs << ParagraphTab.new(Alignment.parse(tab_node.attribute('algn')), (tab_node.attribute('pos').value.to_f / 360_000.0).round(2)) end tabs end end end
Version data entries
2 entries across 2 versions & 1 rubygems