Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-12-04から1日間の記事一覧

Ruby | String | %

概要 String#% 詳細 printf と同じ規則に従って args をフォーマットする。 サンプルコード require 'tbpgr_utils' bulk_puts_eval binding, <<-EOS 'hello %s world' % 'Ruby' 'hello %s world' % 'Java' '%-10s' % 'AWK' '%-10s' % 'C' '%#10s' % 'Perl' '…