Method: JsDuck::Web::Source#write
- Defined in:
- lib/jsduck/web/source.rb
#write(destination) ⇒ Object
Writes all source files as HTML files into destination dir.
15 16 17 18 19 20 21 22 23 |
# File 'lib/jsduck/web/source.rb', line 15 def write(destination) generate_html_filenames FileUtils.mkdir(destination) Util::Parallel.each(@source_files) do |file| Logger.log("Writing source", file.html_filename) write_single(destination + "/" + file.html_filename, file.to_html) end end |