class OoxmlParser::RunStyle
Class for parsing ‘w:rStyle` object
Attributes
value[RW]
@return [Integer] value of size
Public Instance Methods
parse(node)
click to toggle source
Parse RunStyle
@param [Nokogiri::XML:Node] node with RunStyle
@return [RunStyle] result of parsing
# File lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_style.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()
click to toggle source
@return [DocumentStyle] style which was referenced in RunStyle
# File lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_style.rb, line 23 def referenced root_object.document_style_by_id(@value) end