From: Peter Schrammel Date: 2003-05-09T00:32:08+09:00 Subject: Re: [Q] Block passing: obj.new(){block} dblack@superlink.net wrote: > Are you sure you wouldn't rather do: > > t = Test.new("foo") > t.set(89) > > ? :-) I know but I'd like to envoke a lot of methods in the object on creation and thought of something like: t=Test.new(){var1=89,var3=89,var54="bar",onEvent("Click"){puts "You clicked"},doSomething(1,2)} if I had to type self.xxx everytime or do t.varxxx=xxx I'd go nuts. Thanks for the replies so far