Rajeev Bharshetty
2014-Jun-12 10:06 UTC
ObjectSpace#allocation_class_path not working as expected
Using Ruby Version 2.1.2 class A def foo ObjectSpace::trace_object_allocations do obj = Object.new p "#{ObjectSpace::allocation_class_path(obj)}" end endend A.new.foo #=> "Class" The above method is expected to return back the allocation class path of the object. But I am getting an empty string back instead of "Class". Is it an implementation bug in the method or the documentation is not updated. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab1a2106-9710-44d7-ac19-f11e79a2d7bd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.