Bug #2782: Binding#eval not completely indicative of its binding
http://redmine.ruby-lang.org/issues/show/2782

Author: Thomas Sawyer
Status: Open, Priority: Normal
Category: core
ruby -v: 1.9.1

binding.eval("__FILE__") does not return the file from which the binding was created.

Given the purpose of binding it should hold that:

  __FILE__ == binding.eval("__FILE__")


----------------------------------------
http://redmine.ruby-lang.org