Class: Epuber::Compiler::Generator
- Inherits:
-
Object
- Object
- Epuber::Compiler::Generator
- Defined in:
- lib/epuber/compiler/generator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(compilation_context) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(compilation_context) ⇒ Generator
Returns a new instance of Generator.
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_context ⇒ Epuber::Compiler::CompilationContext (readonly)
20 21 22 |
# File 'lib/epuber/compiler/generator.rb', line 20 def compilation_context @compilation_context end |