From: wei1.hu@... Date: 2014-04-10T03:51:01+00:00 Subject: [ruby-core:61936] [ruby-trunk - Bug #9721] [Open] super: no superclass method in Ruby 2.1.1 Issue #9721 has been reported by Wei Hu. ---------------------------------------- Bug #9721: super: no superclass method in Ruby 2.1.1 https://bugs.ruby-lang.org/issues/9721 * Author: Wei Hu * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Below code will result into error: super: no superclass method `foo'for # However, it can pass with Ruby 1.9 and I am not sure if it's feature changes or bug. module A def foo puts "A" end end module B def foo puts "B" super end ub_meth = instance_method :foo define_method :foo do ub_meth.bind(self).call() end end a = Object.new a.extend A a.extend B a.foo -- https://bugs.ruby-lang.org/