class OoxmlParser::Text

Class for parsing `t` tags

Attributes

space[R]

@return [Symbol] space values

text[R]

@return [String] text value

Public Instance Methods

parse(node) click to toggle source

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

# 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