{"blog_url":"https://secret-garden.hatenablog.com/","provider_name":"Hatena Blog","author_name":"osyo-manga","categories":["Ruby"],"blog_title":"Secret Garden(Instrumental)","url":"https://secret-garden.hatenablog.com/entry/2016/10/06/000000","version":"1.0","author_url":"https://blog.hatena.ne.jp/osyo-manga/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F10%2F06%2F000000\" title=\"Ruby \u306e Symbol#to_proc \u306b\u5f15\u6570\u3092\u6e21\u3059\u62e1\u5f35 - Secret Garden(Instrumental)\" 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","description":"\u300e[1,2,16].map(&:to_s(16)) \u307f\u305f\u3044\u306b\u304b\u304d\u305f\u3044\u3088\u306d\u30fc\u300f\u3068\u3044\u3046\u3084\u3064\u3002 class Symbol def call *args, &block proc { |myself| myself.send self, *args, &block } end end p [1, 2, 16].map(&:to_s.(16)) # => [\"1\", \"2\", \"10\"] #call \u3092\u5b9a\u7fa9\u3057\u3066\u3053\u3046\u3044\u3046\u98a8\u306b\u66f8\u304f\u3053\u3068\u306f\u3067\u304d\u308b\u3051\u3069\u3082\u3055\u3066\u3002 [\u304a\u307e\u3051] iolite \u3092\u4f7f\u7528\u3059\u308b\u3068\u3053\u3046\u3044\u3046\u98a8\u306b\u66f8\u304f\u3053\u3068\u306f\u51fa\u6765\u307e\u3059\u3002 require \"iolite\" include Iolite::Placehol\u2026","provider_url":"https://hatena.blog","image_url":null,"published":"2016-10-06 00:00:00","height":"190","title":"Ruby \u306e Symbol#to_proc \u306b\u5f15\u6570\u3092\u6e21\u3059\u62e1\u5f35"}