[#46309] [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — "usa (Usaku NAKAMURA)" <usa@...>

13 messages 2012/10/29
[#46310] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — Tanaka Akira <akr@...> 2012/10/29

2012年10月29日 10:31 usa (Usaku NAKAMURA) <usa@garbagecollect.jp>:

[#46366] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — "U.Nakamura" <usa@...> 2012/11/02

こんにちは、なかむら(う)です。

[#46375] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — KOSAKI Motohiro <kosaki.motohiro@...> 2012/11/02

>> とくに指定しなければ、default external は locale から設定されるので、

[ruby-dev:46299] [ruby-trunk - Feature #5552][Rejected] Array#ljust, Array#rjust

From: "yhara (Yutaka HARA)" <redmine@...>
Date: 2012-10-27 14:55:47 UTC
List: ruby-dev #46299
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/

In This Thread

Prev Next