From: Lou Zell Date: 2008-07-31T18:06:39+09:00 Subject: super with block Hi all, I'm looking for a bit of help. I can't seem to get the block to "pass through" to the parent class. I figured without an '&' in the parameter list there would be no conversion to proc but maybe that is not the case. class Nstring < String def gsub!(*args) super end end This works as I expected: s = Nstring.new("hi") s.gsub!(/(hi)/,'\1') => "hi" But this, not so much: s.gsub!(/(hi)/) {$1} => "" Thanks, Lou -- Posted via http://www.ruby-forum.com/.