{"url":"https://secret-garden.hatenablog.com/entry/2015/09/14/000000","height":"190","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F09%2F14%2F000000\" title=\"Ruby \u3067 define_method \u3067\u5b9a\u7fa9\u3057\u305f\u4e2d\u304b\u3089 super \u3092\u547c\u3073\u51fa\u3059 - 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","author_name":"osyo-manga","published":"2015-09-14 00:00:00","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/osyo-manga/","title":"Ruby \u3067 define_method \u3067\u5b9a\u7fa9\u3057\u305f\u4e2d\u304b\u3089 super \u3092\u547c\u3073\u51fa\u3059","version":"1.0","description":"\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067 define_method \u5185\u304b\u3089 super \u3092\u547c\u3073\u3060\u305d\u3046\u3068\u3057\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002 module M define_method :homu do p :superhomu # \u3053\u3053\u3067\u5143\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u304b\u3063\u305f super end end class X prepend M def homu p :homu end end X.new.homu # Error: in `block in <module:M>': implicit argument passing of super from method defined by define_method() is\u2026","categories":["Ruby"],"blog_title":"Secret Garden(Instrumental)","image_url":null,"provider_url":"https://hatena.blog","blog_url":"https://secret-garden.hatenablog.com/"}