From: 7stud -- Date: 2011-05-13T08:58:21+09:00 Subject: Re: where does the pure method defined when starting irb 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/.