Sha256: ad826e64f341da23ed50722cdafef99709bcd4953ce7de22935dffcfeea8fdbe

Contents?: true

Size: 598 Bytes

Versions: 22

Compression:

Stored size: 598 Bytes

Contents

# encoding: utf-8


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

22 entries across 22 versions & 1 rubygems

Version Path
epuber-0.6.0 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.7 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.6 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.5 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.4 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.3 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.2 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.1 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.0 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.0.beta.5 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.0.beta.4 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.0.beta.3 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.0.beta.2 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.5.0.beta lib/epuber/compiler/file_types/opf_file.rb
epuber-0.4.0 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.3.12 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.3.11 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.3.10 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.3.9 lib/epuber/compiler/file_types/opf_file.rb
epuber-0.3.7 lib/epuber/compiler/file_types/opf_file.rb