Class: Tdc::Generators::GeneratorBase
- Inherits:
-
Object
- Object
- Tdc::Generators::GeneratorBase
- Defined in:
- lib/tdc/generators/generator_base.rb
Overview
Abstract base class for all Test Data Catalog generators.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#generation_context ⇒ Object
readonly
Returns the value of attribute generation_context.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(generation_context) ⇒ GeneratorBase
constructor
A new instance of GeneratorBase.
- #instance_definitions ⇒ Object
Constructor Details
#initialize(generation_context) ⇒ GeneratorBase
Returns a new instance of GeneratorBase.
12 13 14 |
# File 'lib/tdc/generators/generator_base.rb', line 12 def initialize(generation_context) @generation_context = generation_context end |
Instance Attribute Details
#generation_context ⇒ Object (readonly)
Returns the value of attribute generation_context.
7 8 9 |
# File 'lib/tdc/generators/generator_base.rb', line 7 def generation_context @generation_context end |
Instance Method Details
#generate ⇒ Object
16 17 18 |
# File 'lib/tdc/generators/generator_base.rb', line 16 def generate raise Tdc::MissingOverrideError, "Implement the 'generate' method" end |
#instance_definitions ⇒ Object
20 21 22 |
# File 'lib/tdc/generators/generator_base.rb', line 20 def instance_definitions raise Tdc::MissingOverrideError, "Implement the 'instance_definitions' method" end |