lib/byebug/commands/display.rb in byebug-1.3.0 vs lib/byebug/commands/display.rb in byebug-1.3.1
- old
+ new
@@ -1,21 +1,21 @@
module Byebug
module DisplayFunctions
def display_expression(exp)
- print "%s = %s\n", exp, debug_silent_eval(exp).to_s
+ print "#{exp} = #{debug_silent_eval(exp).to_s}\n"
end
def active_display_expressions?
@state.display.select{|d| d[0]}.size > 0
end
def print_display_expressions
n = 1
for d in @state.display
if d[0]
- print "%d: ", n
+ print "#{n}: "
display_expression(d[1])
end
n += 1
end
end
@@ -27,10 +27,10 @@
end
def execute
exp = @match[1]
@state.display.push [true, exp]
- print "%d: ", @state.display.size
+ print "#{@state.display.size}: "
display_expression(exp)
end
class << self
def names