Sha256: 5aa852f7a4eaf6d702b21999960295124f49768b47b8d531483c27c4ecb45bf0

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

module OpenXml
  module Docx
    module Elements
      class BidiOverride < Container
        tag :bdo
        attribute :direction, expects: :valid_direction, displays_as: :val

        VALID_DIRECTIONS = %i(rtl ltr)

      private

        def valid_direction(value)
          valid_in? value, VALID_DIRECTIONS
        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/elements/bidi_override.rb
openxml-docx-0.8.0 lib/openxml/docx/elements/bidi_override.rb
openxml-docx-0.8.0.beta1 lib/openxml/docx/elements/bidi_override.rb