From: "yhara (Yutaka HARA)" Date: 2012-10-27T23:55:47+09:00 Subject: [ruby-dev:46299] [ruby-trunk - Feature #5552][Rejected] Array#ljust, Array#rjust Issue #5552 has been updated by yhara (Yutaka HARA). Status changed from Feedback to Rejected Hi, I'm closing this ticket because of no feedback. Please reopen if you still need these methods. ---------------------------------------- Feature #5552: Array#ljust, Array#rjust https://bugs.ruby-lang.org/issues/5552#change-31810 Author: sawa (Tsuyoshi Sawada) Status: Rejected Priority: Normal Assignee: Category: Target version: I propose the following methods Array#ljust(length [, pad]), Array#rjust(length [, pad]), whose behaviour is analogous to String#ljust(length [, padstr]), String#rjust(length [, padstr]). [:a, :b, :c].ljust(2) #=> [:a, :b, :c] [:a, :b, :c].ljust(5) #=> [:a, :b, :c, nil, nil] [:a, :b, :c].ljust(5, :x) #=> [:a, :b, :c, :x, :x] -- http://bugs.ruby-lang.org/