Sha256: b4bc39ea57ee8a79ada43659633be8725076424dedf4605780c0be7d8998c6c6

Contents?: true

Size: 984 Bytes

Versions: 7

Compression:

Stored size: 984 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, expects: :valid_theme_color
          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.10.6 lib/openxml/docx/properties/underline.rb
openxml-docx-0.10.5 lib/openxml/docx/properties/underline.rb
openxml-docx-0.10.4 lib/openxml/docx/properties/underline.rb
openxml-docx-0.10.3 lib/openxml/docx/properties/underline.rb
openxml-docx-0.10.2 lib/openxml/docx/properties/underline.rb
openxml-docx-0.10.1 lib/openxml/docx/properties/underline.rb
openxml-docx-0.10.0 lib/openxml/docx/properties/underline.rb