Binding#eval __LINE__ and __FILE__ in Ruby 1.9.1

I

Intransition

Ok. One last question in today's debugging for 1.9 session.

Using Bindging#eval, __LINE__ and __FILE__ always appear the same:

binding.eval('__FILE__') #=> "(eval)"
binding.eval('__LINE__') #=> 1

Do we not want the __LINE__ and __FILE__ of the binding call in the
binding's context? That is what 1.8.7 does.

So, is it a bug? Or has this been changed for some reason?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top