Sha256: ac2ec912685b56bd92a9e7609e0369be53975f2729e9752be4a6b8dde6134b98

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

module Tdc
  #
  # Knows how to read data definitions from the specified path elements.
  #
  class DataDefinition
    def read(*_path_elements)
      raise MissingOverrideError
    end

    def with_indifferent_access
      self.extend(Tdc::WithIndifferentAccessDecorator) # rubocop:disable Style/RedundantSelf
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tdc-0.2.3 lib/tdc/data_definition.rb
tdc-0.2.2 lib/tdc/data_definition.rb
tdc-0.2.1 lib/tdc/data_definition.rb
tdc-0.2.0 lib/tdc/data_definition.rb