From 7ef4e54370abc04064e0a3448eecbc2d80d27d45 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sat, 20 Feb 2021 18:19:00 +0900 Subject: Comment out `warn` used in the `Array#fetch` method I get an error because the current mruby does not have a `Kernel#warn` method. But the warning itself is useful and I'll just comment it out in case it's implemented in the future. --- mrbgems/mruby-array-ext/mrblib/array.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb index 25669a9ab..0195a6970 100644 --- a/mrbgems/mruby-array-ext/mrblib/array.rb +++ b/mrbgems/mruby-array-ext/mrblib/array.rb @@ -325,7 +325,7 @@ class Array # def fetch(n, ifnone=NONE, &block) - warn "block supersedes default value argument" if !n.nil? && ifnone != NONE && block + #warn "block supersedes default value argument" if !n.nil? && ifnone != NONE && block idx = n if idx < 0 -- cgit v1.2.3