Sha256: ba01bd4170cba4734d723efbc3b2ad77d05d4701970f539f1b1aaa390824b42a
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true require "tools/baseinfo" module Icarus module Mod module Tools # Sync methods class Modinfo < Baseinfo def to_h db_hash = super db_hash[:meta] = { status: } # Add metadata db_hash end def file_types files&.keys || [@data[:fileType] || "pak"] end def file_urls files&.values || [@data[:fileURL]].compact end # rubocop:disable Naming/MethodName def fileType @data[:fileType] || "pak" end # rubocop:enable Naming/MethodName end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
Icarus-Mod-Tools-2.1.1 | lib/icarus/mod/tools/modinfo.rb |
Icarus-Mod-Tools-2.1.0 | lib/icarus/mod/tools/modinfo.rb |