Sha256: 5050f131108b585875a20345e845f3a604530cc93871f7df1fdebe5836fde926

Contents?: true

Size: 361 Bytes

Versions: 27

Compression:

Stored size: 361 Bytes

Contents

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

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

Version data entries

27 entries across 27 versions & 1 rubygems

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