From: Vivek Date: 2006-02-02T06:40:09+09:00 Subject: methods defined in main Hello, I understand that everything in ruby is an object so a method defined in a file like this in a file def meth1 puts self end actually prints main. but when I run it in the debugger mode and do main.methods. I get 'main' undefined variable..but If i do self.methods I can see the methods but cant see the meth1 method.I thought ruby opens the 'main' object and adds methods to that instance. So whats happening here? Vivek