Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- bin/moneybook
Instance Method Summary collapse
Instance Method Details
#normalize_length ⇒ Object
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 |