class OoxmlParser::Text
Class for parsing ‘t` tags
Attributes
@return [Symbol] space values
@return [String] text value
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/text.rb, line 14 def parse(node) @text = node.text node.attributes.each do |key, value| case key when 'space' @space = value_to_symbol(value) end end self end
Parse Text
object @param node [Nokogiri::XML:Element] node to parse @return [Text] result of parsing