lib/scryglass/lens_helper.rb in scryglass-2.0.2 vs lib/scryglass/lens_helper.rb in scryglass-2.1.0
- old
+ new
@@ -9,10 +9,10 @@
method_list = object.methods - Object.methods
return '' if method_list.empty?
label_space = [method_list.map(&:length).max, 45].min
method_list.sort!
- running_method_showcase = ''
+ running_method_showcase = ''.dup
method_list.each do |method_name|
label = method_name.to_s
label_padding = ' ' * [(label_space - label.length), 0].max
label = "\e[1;34m#{label}\e[0m" # make blue and bold