Sha256: 523375c37911a2902486dda03d2d06058a0af00ff07a062520120a4a7b699203

Contents?: true

Size: 588 Bytes

Versions: 5

Compression:

Stored size: 588 Bytes

Contents

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

      def initialize(data_definition, current_catalog)
        @data_definition = data_definition
        @current_catalog = current_catalog
      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

5 entries across 5 versions & 1 rubygems

Version Path
tdc-0.3.3 lib/tdc/generators/generator_base.rb
tdc-0.3.2 lib/tdc/generators/generator_base.rb
tdc-0.3.1 lib/tdc/generators/generator_base.rb
tdc-0.3.0 lib/tdc/generators/generator_base.rb
tdc-0.2.4 lib/tdc/generators/generator_base.rb