Sha256: 4c8adf0d65c18348e1e51a74bb8d001fe5dd4ae7eeebf0517317479929e3d5e1
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
require_relative "word_function/comments.rb" require_relative "word_function/footnotes.rb" require_relative "word_function/body.rb" require_relative "word_function/postprocess.rb" module IsoDoc =begin module WordConvertModule # http://tech.tulentsev.com/2012/02/ruby-how-to-override-class-method-with-a-module/ # https://www.ruby-forum.com/topic/148303 # # The following is ugly indeed, but the only way I can split module override methods # across files def self.included base base.class_eval do eval File.open(File.join(File.dirname(__FILE__),"wordconvertmodule.rb")).read eval File.open(File.join(File.dirname(__FILE__),"comments.rb")).read eval File.open(File.join(File.dirname(__FILE__),"footnotes.rb")).read eval File.open(File.join(File.dirname(__FILE__),"postprocess.rb")).read end end end =end class WordConvert < ::IsoDoc::Convert include WordFunction::Comments include WordFunction::Footnotes include WordFunction::Body include WordFunction::Postprocess def initialize(options) @format = :doc super end def convert(filename, file = nil, debug = false) ret = super FileUtils.rm_rf tmpimagedir ret end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
isodoc-1.0.29 | lib/isodoc/word_convert.rb |
isodoc-1.0.28 | lib/isodoc/word_convert.rb |
isodoc-1.0.27 | lib/isodoc/word_convert.rb |
isodoc-1.0.26 | lib/isodoc/word_convert.rb |