From: "Xavier R." Date: 2013-02-24T03:09:45+09:00 Subject: Re: how to see the class creation time in Ruby? Ohh! here I tried but none of them worked. >> foo.object_id.last_modified NoMethodError: undefined method `last_modified' for 10535580:Fixnum from (irb):18 from /usr/bin/irb:12:in `
' >> ObjectSpace._id2ref(foo.object_id).last_modified NoMethodError: undefined method `last_modified' for [15, 15]:Array from (irb):19 from /usr/bin/irb:12:in `
' >> ObjectSpace._id2ref(foo.object_id) => [15, 15] >> Array.try_convert(foo) => [15, 15] >> Array.try_convert(foo).last_modified NoMethodError: undefined method `last_modified' for [15, 15]:Array from (irb):22 from /usr/bin/irb:12:in `
' >> Could you tell me the trick? -- Posted via http://www.ruby-forum.com/.