Sha256: f7a588a1783bc58ef702290ac2d72fc8906d928cadc45020d210b2b57c8de241

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

module Epuber
  class Compiler
    module FileTypes
      require_relative 'generated_file'

      class OPFFile < GeneratedFile

        def initialize
          super

          self.destination_path = File.join(Epuber::Compiler::EPUB_CONTENT_FOLDER, 'content.opf')
          self.path_type = :package
        end

        # @param [Compiler::CompilationContext] compilation_context
        #
        def process(compilation_context)
          gen = OPFGenerator.new(compilation_context)
          write_generate(gen.generate_opf.to_s)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
epuber-0.7.4 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.7.3 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.7.2 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.7.1 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.7.0 lib/epuber/compiler/file_types/opf_file.rb