Sha256: 29e8ed4885e5a41117fdd864ce14fb1b2f9c6b90d5dd85ee82fb395c903a3747

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 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
                     Sync::Mods.new.info_array
                   when :proginfo
                     Sync::Progs.new.info_array
                   else
                     raise ArgumentError, "Invalid type: #{type}"
                   end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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