Sha256: ed2d8c646816e90daa489348af92e0d6aae4371a5b9aa98805b6a5960418266f
Contents?: true
Size: 833 Bytes
Versions: 3
Compression:
Stored size: 833 Bytes
Contents
require "uuidtools" require "html2doc" require "liquid" require_relative "wordconvertmodule" require_relative "comments" require_relative "footnotes" module IsoDoc 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 end end end class WordConvert < Convert include WordConvertModule end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
isodoc-0.5.9 | lib/isodoc/wordconvert/convert.rb |
isodoc-0.5.8 | lib/isodoc/wordconvert/convert.rb |
isodoc-0.5.7 | lib/isodoc/wordconvert/convert.rb |