This mailing list is specific to the development and design of Rails.

ObjectSpace is a library in Ruby itself and has nothing in particular to do
with Rails.  Consider posting to one of the Ruby mailing lists instead:
https://www.ruby-lang.org/en/community/mailing-lists/


On Thu, Jun 12, 2014 at 6:07 AM, Rajeev Bharshetty <rbharshe...@gmail.com>
wrote:

> 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: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to