From: Robert Klemme Date: 2009-06-18T23:14:21+09:00 Subject: Re: The Ruby Script Context 2009/6/18 Andrew Timberlake : > On Thu, Jun 18, 2009 at 1:47 PM, Mike Stephens wrote: >> >> When you enter a script, am I right in thinking that automatically an >> overall Module object and a Class object are created, so that all your >> methods not within another class or module are part of these objects? >> What are the names of these two default objects? > > You can see for yourself by using ruby > > puts self.inspect > puts self.class.inspect > puts self.class.included_modules.inspect Note that there are differences between versions of Ruby: 16:13:18 JavaProducts_NGCP_dev_R1.0_PoA$ allruby -e 'p self, self.class, class<