Sha256: 8dcbd9026001ef010170e6ceb7b2fec0b31d278a49501dc130cb635da79123ec

Contents?: true

Size: 535 Bytes

Versions: 7

Compression:

Stored size: 535 Bytes

Contents

module OpenXml
  module Docx
    module Elements
      class WordProcessingDrawingPositionOffset < OpenXml::Docx::Element
        tag :posOffset
        namespace :wp

        def <<(text)
          value << text if text.is_a? String
        end

        def value
          @value ||= ""
        end

        def value=(new_value)
          @value = new_value if new_value.is_a? String
        end

        def to_xml(xml)
          xml[namespace.to_s].public_send(tag, value, xml_attributes)
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openxml-docx-0.11.5 lib/openxml/docx/elements/word_processing_drawing_position_offset.rb
openxml-docx-0.11.4 lib/openxml/docx/elements/word_processing_drawing_position_offset.rb
openxml-docx-0.11.3 lib/openxml/docx/elements/word_processing_drawing_position_offset.rb
openxml-docx-0.11.2 lib/openxml/docx/elements/word_processing_drawing_position_offset.rb
openxml-docx-0.11.1 lib/openxml/docx/elements/word_processing_drawing_position_offset.rb
openxml-docx-0.11.0 lib/openxml/docx/elements/word_processing_drawing_position_offset.rb
openxml-docx-0.11.0.rc lib/openxml/docx/elements/word_processing_drawing_position_offset.rb