Sha256: be05acabd161a5a86703ad8a58de2cdc6e148127b2dea9db5de528681e04176c

Contents?: true

Size: 992 Bytes

Versions: 7

Compression:

Stored size: 992 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class Underline < ComplexProperty
        tag :u

        VALID_UNDERLINE_TYPES =

        with_namespace :w do
          attribute :color, expects: :hex_color
          attribute :theme_color, one_of: OpenXml::Docx::THEME_COLORS
          attribute :theme_shade, expects: :hex_digit
          attribute :theme_tint, expects: :hex_digit
          attribute :type, displays_as: :val, one_of: %i(dash dashDotDotHeavy
                                                        dashDotHeavy dashedHeavy
                                                        dashLong dashLongHeavy
                                                        dotDash dotDotDash
                                                        dotted dottedHeavy double
                                                        none single thick wave
                                                        wavyDouble wavyHeavy words)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openxml-docx-0.11.5 lib/openxml/docx/properties/underline.rb
openxml-docx-0.11.4 lib/openxml/docx/properties/underline.rb
openxml-docx-0.11.3 lib/openxml/docx/properties/underline.rb
openxml-docx-0.11.2 lib/openxml/docx/properties/underline.rb
openxml-docx-0.11.1 lib/openxml/docx/properties/underline.rb
openxml-docx-0.11.0 lib/openxml/docx/properties/underline.rb
openxml-docx-0.11.0.rc lib/openxml/docx/properties/underline.rb