openxml/openxml-docx

View on GitHub
lib/openxml/docx/elements/word_processing_drawing_wrap_through.rb

Summary

Maintainability
A
40 mins
Test Coverage
module OpenXml
  module Docx
    module Elements
      class WordProcessingDrawingWrapThrough < OpenXml::Docx::Element
        include HasChildren, HasProperties

        tag :wrapThrough
        namespace :wp

        attribute :distance_from_left, expects: :positive_integer, displays_as: :distL
        attribute :distance_from_right, expects: :positive_integer, displays_as: :distR
        attribute :wrap_text, one_of: %i(bothSides largest left right), displays_as: :wrapText

      end
    end
  end
end