{"title":"\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b","url":"https://rubikitch.hatenadiary.org/entry/20080323/1206254541","type":"rich","width":"100%","published":"2008-03-23 15:42:21","image_url":null,"height":"190","blog_url":"https://rubikitch.hatenadiary.org/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubikitch.hatenadiary.org%2Fentry%2F20080323%2F1206254541\" title=\"\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b - http://rubikitch.com/\u306b\u79fb\u8ee2\u3057\u307e\u3057\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/rubikitch/","blog_title":"http://rubikitch.com/\u306b\u79fb\u8ee2\u3057\u307e\u3057\u305f","provider_name":"Hatena Blog","author_name":"rubikitch","categories":["ruby"],"description":"class X def self.def_hoges def hoges :hoges end end def_hoges end X.new.hoges # => :hoges \u3075\u3068\u601d\u3044\u4ed8\u3044\u305f\u306e\u3067\u5b9f\u9a13\u3057\u3066\u307f\u305f\u3002\u3084\u3063\u3071\u308a\u3067\u304d\u308b\u3093\u3060\u306a\u3041\u3002\u3064\u3044\u7656\u3067define_method\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u306e\u3060\u304c\u3002 class X def self.def_hoges def hoges # !> method redefined; discarding old hoges :hoges end end def hoges :old end def_hoges end X.new.hoges # => :hoges \u2026","provider_url":"https://hatena.blog"}