5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/pry-moves/vars.rb', line 5
def var_precedence action, target
if Pry.config.ignore_once_var_precedence
Pry.config.ignore_once_var_precedence = false
return
end
input = Pry.config.original_user_input || action.to_s
return if %w[next debug].include? input begin
binding_value = target.eval(input)
puts "ℹ️️ Variable \"#{input}\" found. To execute command type its alias or \\#{input}"
puts PryMoves::Painter.colorize binding_value
true
rescue => e
end
end
|