From 62516f859677553beef9b407e74d807329690629 Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Sat, 23 Mar 2019 17:41:39 +0200 Subject: rubocop: fix offences of the Style/FormatStringToken cop --- lib/pry/commands/ls/local_vars.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/pry/commands') diff --git a/lib/pry/commands/ls/local_vars.rb b/lib/pry/commands/ls/local_vars.rb index abdd6e7f..2b8f4374 100644 --- a/lib/pry/commands/ls/local_vars.rb +++ b/lib/pry/commands/ls/local_vars.rb @@ -33,7 +33,11 @@ class Pry colorized_lhs = color(:local_var, lhs) color_escape_padding = colorized_lhs.size - lhs.size pad = desired_width + color_escape_padding - Kernel.format("%-#{pad}s = %s", color(:local_var, colorized_lhs), rhs) + Kernel.format( + "%-#{pad}s = %s", + name: color(:local_var, colorized_lhs), + value: rhs + ) end end end -- cgit v1.2.1