{"provider_name":"Hatena Blog","description":"format\u8a18\u6cd5\u306bhash\u3092\u6e21\u3057\u3066\u30ad\u30fc\u304b\u3089\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 format(\"%<foo>04b %<bar>05d\", {foo:1, bar:2}) #=> \"0001 00002\" format(\"%<foo>#04b %<bar>05d\", {foo:1, bar:2}) #=> \"0b01 00002\" \u30cd\u30b9\u30c8\u3057\u305fhash\u3092\u6271\u3046\u306e\u306f\u76f8\u5f53\u306b\u96e3\u3057\u3044\u3067\u3059\u3002 \u3042\u3048\u3066\u3084\u308b\u3068\u3059\u308c\u3070 hash = {hoge:{foo: 1, bar:2}} format(\"%<foo>#04b %<bar>05d\", hash[:hoge]) #=> \"0b01 00002\" \u3068\u8a00\u3063\u305f\u611f\u3058\u306b\u306a\u308b\u306e\u2026","categories":["ruby"],"blog_url":"https://shuzo-kino.hateblo.jp/","author_name":"shuzo_kino","width":"100%","blog_title":"Bye Bye Moore","provider_url":"https://hatena.blog","version":"1.0","height":"190","url":"https://shuzo-kino.hateblo.jp/entry/2014/09/28/203521","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","published":"2014-09-28 20:35:21","title":"format\u8a18\u6cd5\u306bhash\u3092\u6e21\u3057\u3066\u30ad\u30fc\u304b\u3089\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2014%2F09%2F28%2F203521\" title=\"format\u8a18\u6cd5\u306bhash\u3092\u6e21\u3057\u3066\u30ad\u30fc\u304b\u3089\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308b - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null}