Sha256: 142fc74d56d1c547ed9a736f2fcfc6cdebefd2a941dbf828cd91aa81e48322db

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

module Tdc
  #
  # Knows how to read data definitions from YAML files.
  #
  class DataDefinitionFileReader < Tdc::DataDefinition
    EMPTY_DEFINITIONS = []

    def initialize(catalog_root_directory)
      @catalog_root_directory = catalog_root_directory
    end

    def read(*path_elements)
      reader = Tdc::YamlReaders::YamlReaderFactory.new(@catalog_root_directory, path_elements).create

      reader.data_definitions
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tdc-0.4.6 lib/tdc/data_definition_file_reader.rb
tdc-0.4.4.1 lib/tdc/data_definition_file_reader.rb
tdc-0.4.4 lib/tdc/data_definition_file_reader.rb