[ruby-core:25002] [Bug #1970] Pathname#to_str doesn't appear to work anymore

23 views
Skip to first unread message

Yehuda Katz

unread,
Aug 20, 2009, 2:54:45 PM8/20/09
to ruby...@ruby-lang.org
Bug #1970: Pathname#to_str doesn't appear to work anymore
http://redmine.ruby-lang.org/issues/show/1970

Author: Yehuda Katz
Status: Open, Priority: High
Category: lib
ruby -v: ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin10.0.0b1]

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].


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

Jeremy Kemper

unread,
Aug 20, 2009, 5:12:54 PM8/20/09
to ruby...@ruby-lang.org
Issue #1970 has been updated by Jeremy Kemper.


It's intentional. See r6114 http://github.com/shyouhei/ruby/commit/4ded52b623ebd1b3de12db82f8b54cc156c1fd28#diff-11
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1970

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

Jeremy Kemper

unread,
Aug 20, 2009, 5:13:25 PM8/20/09
to ruby...@ruby-lang.org
Issue #1970 has been updated by Jeremy Kemper.


And, you can use Pathname#glob.

Reply all
Reply to author
Forward
0 new messages