{"blog_title":"\u65e5\u3005\u306e\u30e1\u30e2\uff20\u306f\u3066\u306a","description":"\u7bc4\u56f2\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u7bc4\u56f2\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f each \u3084 map \u306b\u6e21\u305b\u3070\u305d\u306e\u7bc4\u56f2\u3067\u306e\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308b\u304c\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u914d\u5217\u306b\u306a\u3089\u306a\u3044\u3002\u305d\u306e\u305f\u3081\u3001to_a \u3092\u4f7f\u3046\u306a\u3069\u3092\u3059\u308b\u3002 (1..10).map{|c| print c} #=>12345678910 p (1..10) # 1..10 p [1..10] # [1..10] p (1..10).to_a # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] p [*1..10] # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] a = *1..10 p a # [1, 2, 3, 4, 5, 6, 7, 8, 9, \u2026","type":"rich","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"title":"Ruby\u30e1\u30e2","height":"190","blog_url":"https://nodocchi.hatenablog.com/","published":"2020-12-11 15:29:24","author_url":"https://blog.hatena.ne.jp/nodocchi/","categories":["Ruby"],"provider_name":"Hatena Blog","url":"https://nodocchi.hatenablog.com/entry/2020/12/11/152924","width":"100%","author_name":"nodocchi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnodocchi.hatenablog.com%2Fentry%2F2020%2F12%2F11%2F152924\" title=\"Ruby\u30e1\u30e2 - \u65e5\u3005\u306e\u30e1\u30e2\uff20\u306f\u3066\u306a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}