From: "Xavier R." Date: 2013-02-24T03:01:54+09:00 Subject: Re: how to see the class creation time in Ruby? One more thing to say here is below: >> foo = Array.new(2,15) => [15, 15] >> foo.last_modified NoMethodError: undefined method `last_modified' for [15, 15]:Array from (irb):15 from /usr/bin/irb:12:in `
' Why the above error coming,whereas Array.methods showing it present in ruby? >> Array.methods => [:[], :try_convert, :method_added, :last_modified, :allocate, :new, :superclass, :freeze, :===, :==, :<=>, :<, :<=, :>, :>=, :to_s, :included_modules, :include?, :name, :ancestors, .... etc -- Posted via http://www.ruby-forum.com/.