Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail From: 7stud -- Newsgroups: comp.lang.ruby Subject: Re: where does the pure method defined when starting irb Date: Thu, 12 May 2011 18:58:21 -0500 Organization: Service de news de lacave.net Lines: 47 Message-ID: References: NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1305245483 36612 65.111.164.187 (13 May 2011 00:11:23 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Fri, 13 May 2011 00:11:23 +0000 (UTC) In-Reply-To: X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 383161 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:4445 7stud -- wrote in post #998328: > > Also: > > puts RUBY_VERSION > > x = class A > end > > p x > > x = class < end > > p x > > --output:-- > 1.9.2 > nil > nil > > > p x.instance_methods > > prog.rb:11:in `
': undefined method `instance_methods' for > nil:NilClass (NoMethodError) And... puts RUBY_VERSION #=>1.8.6 x = class A end p x #=>nil x = class <nil p x.instance_methods #error -- Posted via http://www.ruby-forum.com/.