{"image_url":null,"published":"2017-08-08 01:25:59","width":"100%","title":"\u7d44\u307f\u8fbc\u307f\u30af\u30e9\u30b9\u306e\u3059\u3079\u3066\u3092\u79fb\u8b72\u3059\u308b\uff08Ruby\uff09","blog_url":"https://obelisk.hatenablog.com/","categories":["Ruby"],"type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/obelisk2/","url":"https://obelisk.hatenablog.com/entry/2017/08/08/012559","author_name":"obelisk2","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F08%2F08%2F012559\" title=\"\u7d44\u307f\u8fbc\u307f\u30af\u30e9\u30b9\u306e\u3059\u3079\u3066\u3092\u79fb\u8b72\u3059\u308b\uff08Ruby\uff09 - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Camera Obscura","height":"190","description":"require 'delegate' class MyArray < DelegateClass(Array) def initialize(*args, &bk) super(Array.new(*args, &bk)) end def to_s join('_') end end a = MyArray.new(5) {rand(5)} p a #=>[4, 2, 3, 2, 4] p a.to_s #=>\"4_2_3_2_4\" MyArray \u30af\u30e9\u30b9\u306f\uff08\u30ea\u30c6\u30e9\u30eb\u304c\u306a\u3044\u4ee5\u5916\uff09Array \u3068\u307e\u3063\u305f\u304f\u540c\u69d8\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u65b0\u3057\u3044\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u3063\u305f\u308a\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u305f\u308a\u3057\u3066\u3082\u3001\u79fb\u8b72\u306a\u306e\u2026","provider_url":"https://hatena.blog"}