Project

General

Profile

Bug #3351 ยป super.rb

serge_balyuk (Serge Balyuk), 05/27/2010 03:45 PM

 
class Base
def foo
puts "bar"
end
end

module Override
def foo
puts "override"
super
end
end


class A < Base
end

class B < A
end

B.send(:include, Override)
A.send(:include, Override)

B.new.foo
    (1-1/1)