Sha256: 900fc6540cc6058afe7ff9533632a30c4c3bd381fce0c71c298ac64df94dff55
Contents?: true
Size: 1.05 KB
Versions: 31
Compression:
Stored size: 1.05 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 end end
Version data entries
31 entries across 31 versions & 1 rubygems