openxml/openxml-drawingml

View on GitHub
lib/openxml/drawingml/elements/preset_text_warp.rb

Summary

Maintainability
A
45 mins
Test Coverage
module OpenXml
  module DrawingML
    module Elements
      class PresetTextWarp < OpenXml::Element
        include HasChildren
        namespace :a
        tag :prstTxWarp

        attribute :preset, one_of: %i(textArchDown textArchDownPour textArchUp
                                    textArchUpPour textButton textButtonPour
                                    textCanDown textCanUp textCascadeDown
                                    textCascadeUp textChevron textChevronInverted
                                    textCircle textCirclePour textCurveDown
                                    textCurveUp textDeflate textDeflateBottom
                                    textDeflateInflate textDeflateTop
                                    textDoubleWave1 textFadeDown textFadeLeft
                                    textFadeRight textFadeUp textInflate
                                    textInflateBottom textInflateTop textNoShape
                                    textPlain textRingInside textRingOutside
                                    textSlantDown textSlantUp textStop textTriangle
                                    textTriangleInverted textWave1 textWave2
                                    textWave4), displays_as: :prst
      end
    end
  end
end