Tbpgr Blog

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

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

Ruby | String | *

概要 String#* times -> String 詳細 文字列の内容を times 回だけ繰り返した新しい文字列を返却。 サンプルコード require 'tbpgr_utils' bf =->(x) { '>%s.' % (?+ * x.ord) } bulk_puts_eval binding, <<-EOS 'hoge'*0 'hoge'*2 ?+*3 '+' '-'*3 '+%s-' % …