From: Peter Schrammel Date: 2003-05-08T22:51:52+09:00 Subject: [Q] Block passing: obj.new(){block} Hi, How do I pass a block to the initialize method that calls some methods of the new object? Here is what I want to get: class Test def initialize(foo) ... end def set=(myval) @set=myval end def set @set end end t=Test.new("foo"){set=89} puts t.set =>89 I already tried a lot but ... Thanks Peter