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