Method: CBETA::P5aToHTMLForPDF#initialize
- Defined in:
- lib/cbeta/p5a_to_html_for_pdf.rb
#initialize(xml_root, out_root, opts = {}) ⇒ P5aToHTMLForPDF
Returns a new instance of P5aToHTMLForPDF.
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/cbeta/p5a_to_html_for_pdf.rb', line 33 def initialize(xml_root, out_root, opts={}) @config = { toc: true } @config.merge!(opts) @xml_root = xml_root @out_root = out_root @cbeta = CBETA.new @gaijis = CBETA::Gaiji.new end |