Sha256: 3c50f125eefa27fbeb5fefb3c30ee1e70e14a630647b87da69945e9a5dc9a564

Contents?: true

Size: 341 Bytes

Versions: 2

Compression:

Stored size: 341 Bytes

Contents

# Class for describing strikeout
module OoxmlParser
  class Strikeout
    # Parse Strikeout
    # @param [Nokogiri::XML:Attr] node with Strikeout
    # @return [Symbol] value of Strikeout
    def self.parse(node)
      case node.value
      when 'sngStrike'
        :single
      when 'dblStrike'
        :double
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/strikeout.rb
ooxml_parser-0.1.1 lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/strikeout.rb