{"blog_title":"Tbpgr Blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20141214%2F1418553384\" title=\"Ruby | String | each_byte - 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>","image_url":null,"description":"\u6982\u8981 String#each_byte {|byte| ... } -> self String#each_byte -> Enumerator \u8a73\u7d30 \u6587\u5b57\u5217\u306e\u5404\u30d0\u30a4\u30c8\u306b\u5bfe\u3057\u3066\u7e70\u308a\u8fd4\u3059\u3002 \u30d6\u30ed\u30c3\u30af\u3092\u7701\u7565\u3059\u308b\u3068\u3001 Enumerator \u3092\u8fd4\u5374 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 'hoge'.each_byte { |e|print e, ',' } puts 'hoge'.each_byte { |e|print (e + 1).chr } puts each_hoge = 'hoge'.each_byte puts each_hoge.class puts each_hoge.map { |e|(e - 32)\u2026","height":"190","url":"https://tbpgr.hatenablog.com/entry/20141214/1418553384","author_name":"tbpg","title":"Ruby | String | each_byte","published":"2014-12-14 19:36:24","type":"rich","blog_url":"https://tbpgr.hatenablog.com/","version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","categories":["Ruby"],"author_url":"https://blog.hatena.ne.jp/tbpg/"}