Sha256: 603ffcb04be468d64e17ef7e1617f81dd82c8d2e020f68873ea313d19b9a0157

Contents?: true

Size: 672 Bytes

Versions: 23

Compression:

Stored size: 672 Bytes

Contents

module Tdc
  module Generators
    #
    # Abstract base class for all Test Data Catalog generators.
    #
    class GeneratorBase
      attr_reader :generation_context

      # ARM (2020-08-05): For backwards compatibility. Consider removing.
      delegate :current_catalog, :data_definition, to: :generation_context

      def initialize(generation_context)
        @generation_context = generation_context
      end

      def generate
        raise Tdc::MissingOverrideError, "Implement the 'generate' method"
      end

      def instance_definitions
        raise Tdc::MissingOverrideError, "Implement the 'instance_definitions' method"
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
tdc-1.1 lib/tdc/generators/generator_base.rb
tdc-1.0 lib/tdc/generators/generator_base.rb
tdc-0.6.2 lib/tdc/generators/generator_base.rb
tdc-0.6.1 lib/tdc/generators/generator_base.rb
tdc-0.6.0 lib/tdc/generators/generator_base.rb
tdc-0.5.0 lib/tdc/generators/generator_base.rb
tdc-0.4.7 lib/tdc/generators/generator_base.rb
tdc-0.4.6.1 lib/tdc/generators/generator_base.rb
tdc-0.4.6 lib/tdc/generators/generator_base.rb
tdc-0.4.4.1 lib/tdc/generators/generator_base.rb
tdc-0.4.4 lib/tdc/generators/generator_base.rb
tdc-0.4.3.1 lib/tdc/generators/generator_base.rb
tdc-0.4.3 lib/tdc/generators/generator_base.rb
tdc-0.4.2 lib/tdc/generators/generator_base.rb
tdc-0.4.1 lib/tdc/generators/generator_base.rb
tdc-0.4.0 lib/tdc/generators/generator_base.rb
tdc-0.3.9 lib/tdc/generators/generator_base.rb
tdc-0.3.8 lib/tdc/generators/generator_base.rb
tdc-0.3.7 lib/tdc/generators/generator_base.rb
tdc-0.3.6.1 lib/tdc/generators/generator_base.rb