Skip to content

Commit

Permalink
[ruby/irb] Suppress "shadowing outer" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Dec 22, 2020
1 parent fbcdcbf commit 0b14abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/irb/cmd/measure.rb
Expand Up @@ -14,8 +14,8 @@ def execute(type = nil, arg = nil)
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
Expand Down

0 comments on commit 0b14abe

Please sign in to comment.