Ruby Get Instance Name

Snippet
# controller is whatever object you're looking at
ObjectSpace._id2ref(controller.object_id) 

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.