From: Patrick Roemer Date: 2003-01-03T09:32:10+09:00 Subject: Hiding block parameter from super method Hi, sorry if this is too much of a FAQ, but I couldn't find a quick answer, so hopefully somebody here can help me out. class A def initialize(&block) yield if(block_given?) end end class B < A def initialize(&block) super() @block=block end end B.new {|| puts "Duh!"} How would I hide the block parameter from A's initialize method? The 'real problem' is that I am working with a subclass of Fox::FXDialogBox that receives a block parameter on initialization. Unfortunately that block gets executed during the super initialization call. Of course I can resort to using a Proc instance instead of a block in my subclass, but I'd still like to now... Regards, Patrick