From: Brian Mitchell Date: 2006-10-06T08:18:50+09:00 Subject: Re: Some wierd Module#append_features behavior On 10/5/06, Brian Mitchell wrote: > I couldn't quite figure this out... I am either missing something (I > hope) or there is a small bug: > > Module === Module #=> true > Module === Module.new #=> true > > af = Module.instance_method(:append_features) > > af.bind(Module.new).call(Module) # ok > af.bind(Module.new).call(Module.new) # ok > af.bind(Module).call(Module) # ok > af.bind(Module).call(Module.new) # error! > > TypeError: wrong argument type Class (expected Module) > > I am kind of puzzled by this... any ideas? To be more specific, the third "ok" is unexpected if the fourth is not going to work (which went as I expected). Brian.