Sha256: 00eb1ba8f9a8aa84e7188199dfcc41659732bf88740f8cdff4176f8e5ead623d

Contents?: true

Size: 608 Bytes

Versions: 10

Compression:

Stored size: 608 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

10 entries across 10 versions & 1 rubygems

Version Path
epuber-0.11.1 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.11.0 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.10.3 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.10.2 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.10.1 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.9.3 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.9.2 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.9.1 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.9.0 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.8.0 lib/epuber/compiler/file_types/opf_file.rb