class OoxmlParser::Suffix
Class for storing Suffix
`w:suff` This element specifies the content which shall be added between a given numbering level's text and the text of every numbered paragraph which references that numbering level. If this element is omitted, then its value shall be assumed to be tab. >ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference 17.9.29.
Attributes
value[RW]
@return [String] value of suffix
Public Class Methods
new(value = :tab, parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/docx_parser/docx_data/document_structure/numbering/abstract_numbering/numbering_level/suffix.rb, line 14 def initialize(value = :tab, parent: nil) @value = value super(parent: parent) end
Public Instance Methods
parse(node)
click to toggle source
Parse Suffix
@param [Nokogiri::XML:Node] node with Suffix
@return [Suffix] result of parsing
# File lib/ooxml_parser/docx_parser/docx_data/document_structure/numbering/abstract_numbering/numbering_level/suffix.rb, line 23 def parse(node) node.attributes.each do |key, value| case key when 'val' @value = value.value.to_sym end end self end