Changing the order of arguments in ruby sprintf

Posted by railscoder on Stack Overflow See other posts from Stack Overflow or by railscoder
Published on 2010-04-13T09:01:40Z Indexed on 2010/04/13 9:02 UTC
Read the original article Hit count: 390

Filed under:
|

Is it possible to change the order of parameters to sprintf fun?

like sprintf(" this is %arg[2] test %arg[1]" , arg1, arg2)

i need to dynamically change the order of the arguments. so is that possible with sprintf?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about sprintf