Issue #8546 has been reported by saturnflyer (Jim Gay).

----------------------------------------
Bug #8546: super errors in UnboundMethods
https://bugs.ruby-lang.org/issues/8546

Author: saturnflyer (Jim Gay)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


UnboundMethods are unable to call super
=begin

(({module M
  def hello
    puts "hello from M"
  end
end

class O
  def hello
    puts "hello"
  end
end

o = O.new
o.hello #=> "hello"
M.instance_method(:hello).bind(o).call #=> "hello from M"

module M
  def hello
    super
  end
end

M.instance_method(:hello).bind(o).call #=> TypeError: self has wrong type to call super in this context: O (expected M)}))
=end

Given that the non-super method works, I would expect super to work.


-- 
http://bugs.ruby-lang.org/