{"url":"https://s5ot.hatenablog.com/entry/20100404/1270395750","author_name":"s5ot","published":"2010-04-04 00:42:30","height":"190","image_url":null,"description":"\uff11\uff10\u5206\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 10\u5206\u3067\u3067\u304d\u306a\u304b\u3063\u305f\u3057\u3001\u306a\u3093\u304b\u30bb\u30f3\u30b9\u306a\u3044\u3067\u3059\u3002\u51fa\u76f4\u3057\u307e\u3059\u3002\u3002 def kubaru(cnt, tramp) tramp = tramp.split(//) limit = tramp.size/cnt sets = \"\" rtn = [] cnt.times do |c| tramp.each_with_index do |e, i| sets << e if i % cnt == c end rtn << sets[0...limit] sets = \"\" end rtn end ruby-1.8.7-p248 > kubaru(3,\"12312312\u2026","provider_url":"https://hatena.blog","version":"1.0","categories":["ruby"],"type":"rich","blog_url":"https://s5ot.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs5ot.hatenablog.com%2Fentry%2F20100404%2F1270395750\" title=\"\uff11\uff10\u5206\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 - s5ot&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\uff11\uff10\u5206\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/s5ot/","width":"100%","blog_title":"s5ot's blog"}