{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.nishimu.land%2Fentry%2F2016%2F12%2F27%2F092119\" title=\"Ruby 2.4 - \u3061\u306a\u307f\u306b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"Sixeight","image_url":null,"width":"100%","published":"2016-12-27 09:21:19","version":"1.0","blog_url":"https://blog.nishimu.land/","url":"https://blog.nishimu.land/entry/2016/12/27/092119","title":"Ruby 2.4","categories":["ruby"],"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/Sixeight/","description":"\u4eca\u5e74\u3082\u30af\u30ea\u30b9\u30de\u30b9\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u6bce\u5e74\u7d20\u6575\u306a\u30d7\u30ec\u30bc\u30f3\u30c8\u3092\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01 github.com Module\u3082 refine \u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3079\u3093\u308a\u3067\u3059\u306d\u3002 module Moconize refine Comparable do def clamp(min, max) if (min..max).include? self '\ud83d\ude07' else super(min, max) end end end end using Moconize puts -3.clamp(1, 10) #=> 1 puts 13.clamp(1, 10) #=> 10 puts 5.clamp(1, 10)\u2026","provider_name":"Hatena Blog","type":"rich","height":"190","blog_title":"\u3061\u306a\u307f\u306b"}