class OoxmlParser::FormTextComb

Class for parsing ‘comb` tag

Attributes

width[R]

@return [OoxmlSize] field width

width_rule[R]

@return [Symbol] width rule

Public Instance Methods

parse(node) click to toggle source

Parse FormTextComb object @param node [Nokogiri::XML:Element] node to parse @return [FormTextComb] result of parsing

# File lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/sdt/sdt_properties/form_text_properties/form_text_comb.rb, line 14
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'width'
      @width = OoxmlSize.new(value.value.to_f)
    when 'wRule'
      @width_rule = value.value.to_sym
    end
  end
  self
end