From: "SHIGETOMI, Takuhiko" Date: 2005-09-12T13:22:08+09:00 Subject: Re: how to well-qualify the 2-inherited methods at their collision point greetings, Trans. than kyou for your good guess. > Perhaps you just wish to pass along the call, i.e. > > module BaseModule > def set_message( s ) > @msg = s > end > > def greeting > puts "greetings: #{@msg}. this is BaseModule." > super if defined?(super) # ==> will call greeting in Baseclass > end > end great! conditional-super, right? i did not know the 'super' is check-able as above. > But if this is not your intent then there a "simple" way using Nano > Methods: > > require 'nano/object/superup' > > class SubClass < BaseClass > include BaseModule > def greeting > super > superup(BaseClass).greeting > end > end i appreciate you for not only the code above but let me know the existence and power of your project. > Note that I may be changing the name of this method to 'superfunc' in > the next release (b/c it works via a Functor). Deciding on a good name > for this method has been bothersome. If anyone has a better idea let me > know. ok. i remember this. if i were you, i would name it 'metasuper' :-) good day, qssp://void/3d/universe/milky-way-galaxy/orion-arm/sol-solar-system/ 3rd-planet/fareast/jp/tky/shigetomi.takuhiko.5618