From a04faf5d24ec8fd7ff3c65c066035ba4213dcf35 Mon Sep 17 00:00:00 2001 From: Mau Magnaguagno Date: Wed, 22 Nov 2023 23:51:46 -0300 Subject: [PATCH] Prefer ARGV[0] instead of ARGV.first --- Spriter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spriter.rb b/Spriter.rb index 20a2f71..a4e4adc 100644 --- a/Spriter.rb +++ b/Spriter.rb @@ -202,7 +202,7 @@ def save(filename, r1 = 0, g1 = 255, b1 = 0, a1 = 255, r2 = 0, g2 = 0, b2 = 0, a begin t = Time.now.to_f div = '--------------------------------' - ext = ARGV.first || 'bmp' + ext = ARGV[0] || 'bmp' unless File.directory?("sprites/#{ext}") Dir.mkdir('sprites') unless File.directory?('sprites') Dir.mkdir("sprites/#{ext}")