Class: Array

Inherits:
Object
  • Object
show all
Defined in:
bin/moneybook

Instance Method Summary collapse

Instance Method Details

#normalize_lengthObject



19
20
21
22
# File 'bin/moneybook', line 19

def normalize_length
  max = self.inject{|longest, current| longest.to_s.length > current.to_s.length ? longest : current }.to_s.length
  self.map{|x| x = "%-#{max}s" % x.to_s}
end