Sha256: ab1ccb0c2abc993aca7bd729d59d007742251d278971e9f5ec3bc690a9d9b616
Contents?: true
Size: 960 Bytes
Versions: 22
Compression:
Stored size: 960 Bytes
Contents
# encoding: utf-8 module Epuber class Compiler module FileTypes require_relative 'generated_file' class NavFile < GeneratedFile # @return [Epuber::Version] # attr_reader :epub_version # @param [Epuber::Version] epub_version # def initialize(epub_version) super() @epub_version = epub_version properties << :navigation self.destination_path = if epub_version >= 3 'nav.xhtml' else 'nav.ncx' end self.path_type = :manifest end # @param [Compiler::CompilationContext] compilation_context # def process(compilation_context) gen = NavGenerator.new(compilation_context) write_generate(gen.generate_nav.to_s) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems