@@ -27,13 +27,17 @@ def colored_inspect(obj)
2727 IRB ::ColorPrinter . pp ( obj , "" )
2828 end
2929
30+ def colorize_cyan ( str )
31+ colorize ( str , [ :CYAN , :BOLD ] )
32+ end
33+
3034 def colorize_blue ( str )
3135 colorize ( str , [ :BLUE , :BOLD ] )
3236 end
3337
3438 def assemble_arguments ( args )
3539 args . map do |arg |
36- "#{ colorize ( arg [ :name ] , [ :CYAN , :BOLD ] ) } =#{ arg [ :value ] } "
40+ "#{ colorize_cyan ( arg [ :name ] ) } =#{ arg [ :value ] } "
3741 end . join ( ", " )
3842 end
3943
@@ -293,15 +297,15 @@ def show_by_editor path = nil
293297
294298 def show_locals
295299 if s = current_frame &.self
296- puts " %self => #{ colored_inspect ( s ) } "
300+ puts " #{ colorize_cyan ( " %self" ) } => #{ colored_inspect ( s ) } "
297301 end
298302 if current_frame &.has_return_value
299- puts " %return => #{ colored_inspect ( current_frame . return_value ) } "
303+ puts " #{ colorize_cyan ( " %return" ) } => #{ colored_inspect ( current_frame . return_value ) } "
300304 end
301305 if b = current_frame &.binding
302306 b . local_variables . each { |loc |
303307 value = b . local_variable_get ( loc )
304- puts " #{ loc } => #{ colored_inspect ( value ) } "
308+ puts " #{ colorize_cyan ( loc ) } => #{ colored_inspect ( value ) } "
305309 }
306310 end
307311 end
@@ -310,7 +314,7 @@ def show_ivars
310314 if s = current_frame &.self
311315 s . instance_variables . each { |iv |
312316 value = s . instance_variable_get ( iv )
313- puts " #{ iv } => #{ colored_inspect ( value ) } "
317+ puts " #{ colorize_cyan ( iv ) } => #{ colored_inspect ( value ) } "
314318 }
315319 end
316320 end
0 commit comments