class OoxmlParser::ParagraphStyleRef
Class for parsing ‘pStyle` tags
Attributes
value[R]
@return [Integer] value of ParagraphStyleRef
Public Instance Methods
parse(node)
click to toggle source
Parse ParagraphStyleRef
object @param node [Nokogiri::XML:Element] node to parse @return [ParagraphStyleRef] result of parsing
# File lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_properties/paragraph_style_ref.rb, line 12 def parse(node) node.attributes.each do |key, value| case key when 'val' @value = value.value.to_s end end self end
referenced_style()
click to toggle source
@return [ParagraphStyle] which was referenced
# File lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_properties/paragraph_style_ref.rb, line 23 def referenced_style root_object.document_style_by_id(value) end