{"height":"190","width":"100%","title":"ruby\u3067\u30bc\u30ed\u30d1\u30c6\u30a3\u30f3\u30b0","description":"\u3088\u304f\u3042\u308a\u305d\u3046\u306asprintf\u3002 i = 1 puts sprintf('%03d', i) #=> 001 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3063\u307d\u304frjust\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3002 i = 1 puts i.to_s.rjust(3, '0') #=> 001","author_name":"hokaccha","provider_url":"https://hatena.blog","published":"2013-01-27 18:18:32","blog_url":"https://hokaccha.hatenablog.com/","provider_name":"Hatena Blog","url":"https://hokaccha.hatenablog.com/entry/20130127/1359278312","blog_title":"hokaccha memo","type":"rich","author_url":"https://blog.hatena.ne.jp/hokaccha/","categories":["ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20130127%2F1359278312\" title=\"ruby\u3067\u30bc\u30ed\u30d1\u30c6\u30a3\u30f3\u30b0 - hokaccha memo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":null}