Class: Epuber::Compiler::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/epuber/compiler/generator.rb

Direct Known Subclasses

MetaInfGenerator, NavGenerator, OPFGenerator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(compilation_context) ⇒ Generator

Returns a new instance of Generator.

Parameters:



24
25
26
27
28
29
# File 'lib/epuber/compiler/generator.rb', line 24

def initialize(compilation_context)
  @compilation_context = compilation_context
  @book = compilation_context.book
  @target = compilation_context.target
  @file_resolver = compilation_context.file_resolver
end

Instance Attribute Details

#compilation_contextEpuber::Compiler::CompilationContext (readonly)



20
21
22
# File 'lib/epuber/compiler/generator.rb', line 20

def compilation_context
  @compilation_context
end