I thought that including a module as a mixin in a class "added the functions" to the class.
I do not understand why this does not work as expected:
module A def blah super if defined?(super) puts "hello, world!" end end class X include A end class Y < X include A end y = Y.new y.blah
I was expecting "y" to call its super blah() (since its included in class X?) but instead i got:
test.rb:3:in blah: super: no superclass method `blah'