Sha256: b3839a87c77d6a1ee857109241c60f9160089828fc2b2a28137ddae2a43a5f63

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

require "tools/baseinfo"

module Icarus
  module Mod
    module Tools
      # Sync methods
      class Toolinfo < Baseinfo
        HASHKEYS = %i[name author version compatibility description fileType fileURL imageURL readmeURL].freeze

        # rubocop:disable Naming/MethodName
        def fileType
          @data[:fileType] || "zip"
        end
        # rubocop:enable Naming/MethodName

        private

        def filetype_pattern
          /(zip|exe)/i
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
Icarus-Mod-Tools-2.1.0 lib/icarus/mod/tools/toolinfo.rb
Icarus-Mod-Tools-2.0.3 lib/icarus/mod/tools/toolinfo.rb
Icarus-Mod-Tools-2.0.1 lib/icarus/mod/tools/toolinfo.rb
Icarus-Mod-Tools-2.0 lib/icarus/mod/tools/toolinfo.rb