Bug #3574: Missing documentation for sprintf named argument support
http://redmine.ruby-lang.org/issues/show/3574

Author: Heesob Park
Status: Open, Priority: Normal
Category: DOC, Target version: 1.9.x
ruby -v: ruby 1.9.3dev (2010-07-15 trunk 28645) [i386-mswin32_90]

I noticed that sprintf supports named argument since 1.9.1.

But I cannot find any documentation about sprintf named argument support.

In my test, named argument works like this:

sprintf("%<first>s %<second>d %{first} %{second}",{:first=>'hello',:second=>8})   #=> "hello 8 hello 8"

Thanks.


----------------------------------------
http://redmine.ruby-lang.org