Module: DocumentToRichHtml::DocxPatch

Defined in:
lib/document_to_rich_html/docx_patch.rb

Class Method Summary collapse

Class Method Details

.applyObject



5
6
7
8
9
10
11
12
13
# File 'lib/document_to_rich_html/docx_patch.rb', line 5

def self.apply
  unless Docx.const_defined?(:ElementPatch)
    Docx.const_set(:ElementPatch, Module.new)
  end

  unless Docx::ElementPatch.const_defined?(:Element)
    Docx::ElementPatch.const_set(:Element, Class.new)
  end
end