===
module S1
def initialize
puts ‘s1’
end
end
module T1
def initialize
puts ‘t1’
end
end
class MyC
include S1
include T1
def initialize
puts ‘myc’
super()
end
end
MyC.new
output
myc
t1
so, I can’t call all the chain of initialize() of all included modules
in MyC ?
and
====
module S1
def initialize
puts ‘s1’
end
end
module T1
def initialize
puts ‘t1’
super()
end
end
class MyC
include S1
include T1
def initialize
puts ‘myc’
super()
end
end
MyC.new
output
myc
t1
s1
how’s that super() in T1 calls initialize() in S1 ???