Pathname#to_str doesn't appear to work anymore
It seems as though Pathname#to_str was removed in 1.9. Was this intentional? It breaks all usage of Pathname in cases like: Dir[@pathname].
Updated by bitsweat (Jeremy Daer) about 12 years ago
It's intentional. See r6114 http://github.com/shyouhei/ruby/commit/4ded52b623ebd1b3de12db82f8b54cc156c1fd28#diff-11