Sha256: 5b026849c0413374ebad03f44774b4fe745b623aa1b20605dac45ff6a9443341
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
module OoxmlParser # Class for storing `w:tab` data class ParagraphTab < OOXMLDocumentObject # @return [Symbol] Specifies the style of the tab. attr_accessor :value # @return [OOxmlSize] Specifies the position of the tab stop. attr_accessor :position alias align value # Parse ParagraphTab object # @param node [Nokogiri::XML:Element] node to parse # @return [ParagraphTab] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'val' @value = value.value.to_sym when 'pos' @position = OoxmlSize.new(value.value.to_f) end end self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ooxml_parser-0.2.0 | lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tabs/paragraph_tab.rb |