class Array
Public Instance Methods
max_lengths()
click to toggle source
# File lib/trellohub/core_ext/array.rb, line 2 def max_lengths self.each_with_object([]) do |line, obj| line.each.with_index do |v, i| length = v.to_s.width obj[i] = length if obj[i].nil? || obj[i] < length end end end