|
Ruby Lang
»
ruby-talk
Binding#eval __LINE__ and __FILE__ in Ruby 1.9.1
View:
Threaded
Chronologically
All Messages
New views
1 Messages —
Rating Filter:
0
1
2
3
4
5
Alert me
Binding#eval __LINE__ and __FILE__ in Ruby 1.9.1
by trans
:: Rate this Message:
Reply to Author
|
View Threaded
|
Show Only this Message
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?
Free embeddable forum
powered by
Nabble
Forum Help