1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Suppress "shadowing outer" warning

https://github.com/ruby/irb/commit/27b149c599
This commit is contained in:
aycabta 2020-12-22 05:08:12 +09:00
parent fbcdcbff0d
commit 0b14abe8e7

View file

@ -14,8 +14,8 @@ module IRB
IRB.conf[:MEASURE] = nil
IRB.unset_measure_callback(arg)
when :list
IRB.conf[:MEASURE_CALLBACKS].each do |type_name, _, arg|
puts "- #{type_name}" + (arg ? "(#{arg.inspect})" : '')
IRB.conf[:MEASURE_CALLBACKS].each do |type_name, _, arg_val|
puts "- #{type_name}" + (arg_val ? "(#{arg_val.inspect})" : '')
end
when :on
IRB.conf[:MEASURE] = true