parse_printf_format

parse_printf_format(format, opts)
Instance Public methods

Returns an array of the given format and opts to be used by Kernel#sprintf, if there was a successful Regexp match in the given format from printf

%
<flag>  [#0- +]
<minimum field width> (\*|\*[1-9][0-9]*\$|[1-9][0-9]*)
<precision>.(\*|\*[1-9][0-9]*\$|[1-9][0-9]*|)?
#<length modifier>(hh|h|l|ll|L|q|j|z|t)
<conversion specifier>[diouxXeEfgGcsb%]
doc_ruby_on_rails
2015-04-14 10:29:48
Comments
Leave a Comment

Please login to continue.