Class: OoxmlParser::Strikeout

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/strikeout.rb

Class Method Summary collapse

Class Method Details

.parse(node) ⇒ Symbol

Parse Strikeout

Parameters:

  • node (Nokogiri::XML:Attr)

    with Strikeout

Returns:

  • (Symbol)

    value of Strikeout



7
8
9
10
11
12
13
14
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/strikeout.rb', line 7

def self.parse(node)
  case node.value
  when 'sngStrike'
    :single
  when 'dblStrike'
    :double
  end
end