Sha256: 12a2b1ee6c04c22a1c800c5bccd9de71f17b95d984c1a8e6e4265ae9edee0285

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module Icarus
  module Mod
    module Tools
      # Validate Methods
      class Validator
        attr_reader :array

        def initialize(type)
          @array = case type
                   when :modinfo
                     ModSync.new.info_array
                   when :proginfo
                     ProgSync.new.info_array
                   else
                     raise ArgumentError, "Invalid type: #{type}"
                   end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Icarus-Mod-Tools-1.8.1 lib/icarus/mod/tools/validator.rb