lib/icarus/mod/tools/toolinfo.rb in Icarus-Mod-Tools-2.1.0 vs lib/icarus/mod/tools/toolinfo.rb in Icarus-Mod-Tools-2.1.1

- old
+ new

@@ -13,9 +13,13 @@ def fileType @data[:fileType] || "zip" end # rubocop:enable Naming/MethodName + def to_h + HASHKEYS.each_with_object({}) { |key, hash| hash[key] = @data[key] } + end + private def filetype_pattern /(zip|exe)/i end