From: joel Date: 2001-03-25T07:40:02+09:00 Subject: [ruby-talk:13178] self in blocks used with tk methods How do the ruby tk methods arrange to have self refer to the object being created, e.g.: TkLabel.new { p self } ==> returns and prints the new label object ...but: class Test def initialize yield end end Test.new { p self } ==> prints 'main' and returns the new Test object -- Joel VanderWerf skeeler@sirius.com