Sha256: 8d9af855fe9e0f6c11fa180c8cd7723640e2ef58c842c215595fa7cb94046813

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

module OptParseValidator
  class ConfigFilesLoaderMerger < Array
    module ConfigFile
      # Base class, #parse should be implemented in child classes
      class Base
        attr_reader :path

        # @param [ String ] path The file path of the option file
        def initialize(path)
          @path = path
        end

        # @params [ Hash ] opts
        # @return [ Hash ] a { 'key' => value } hash
        def parse(_opts = {})
          raise NotImplementedError
        end

        def ==(other)
          path == other.path
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opt_parse_validator-0.0.17.0 lib/opt_parse_validator/config_files_loader_merger/base.rb