Sha256: 85e51f2d14cb1026e256ee4f1a85fc1e197cac7a2812cd9252ff48848f4d5215

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class EastAsianLayout < ComplexProperty
        attribute :combine, expects: :on_or_off
        attribute :combine_brackets, expects: :valid_bracket
        attribute :id, expects: :integer
        attribute :vertical, expects: :on_or_off, displays_as: :vert
        attribute :vertical_compress, expects: :on_or_off, displays_as: :vertCompress

        VALID_BRACKETS = %i(angle curly none round square)

      private

        def valid_bracket(value)
          valid_in? value, VALID_BRACKETS
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openxml-docx-0.9.0 lib/openxml/docx/properties/east_asian_layout.rb
openxml-docx-0.8.0 lib/openxml/docx/properties/east_asian_layout.rb
openxml-docx-0.8.0.beta1 lib/openxml/docx/properties/east_asian_layout.rb