{"type":"rich","url":"https://tbpgr.hatenablog.com/entry/20140513/1399984319","title":"Ruby | Kernel | format","version":"1.0","categories":["Ruby"],"blog_url":"https://tbpgr.hatenablog.com/","width":"100%","published":"2014-05-13 21:31:59","description":"\u6982\u8981 Kernel#format(format, *arg) -> String \u8a73\u7d30 C\u8a00\u8a9e\u306e sprintf \u306e\u985e\u4f3c\u6a5f\u80fd\u3002 \u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u306e\u30ea\u30f3\u30af\u5148\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u53c2\u7167 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 puts format \"%c\", 97 puts format \"%c, %s, %i\", 'a', 'hoge', '0b1000' \u51fa\u529b a a, hoge, 8 \u53c2\u7167 http://docs.ruby-lang.org/ja/2.0.0/class/Kernel.html#M_FORMAT","provider_url":"https://hatena.blog","author_name":"tbpg","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140513%2F1399984319\" title=\"Ruby | Kernel | format - Tbpgr Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Tbpgr Blog","author_url":"https://blog.hatena.ne.jp/tbpg/","height":"190","image_url":null}