Sha256: 57f83aa31d96a16b74940082bb71e909584c6ead8375cd44d456a76e0f76f730
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
require 'epubber/generators/generator' module Epubber::Generators class Static < Generator def generate files = ['mimetype', 'META-INF/container.xml', 'META-INF/com.apple.ibooks.display-options.xml', 'OEBPS/Styles/style.css'] files.each do |file| copy file end end protected # Get the file from the template and copy it unchanged def copy(file) content = File.open(template_path(file)).read persist file: file, content: content end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
epubber-0.2.0 | lib/epubber/generators/static.rb |