diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-07 02:51:05 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-07 02:51:05 +0000 |
| commit | 8cdc3778294e77428b05f16ec7a60ff8d1f7775a (patch) | |
| tree | 7b44f5fa6aa0e5c49b2928d43f00ccc71c97a07f /lib/pathname.rb | |
| parent | b10a3c15cf0b3ab78fe761ad7f7cc37a54d8e0ad (diff) | |
| download | ruby-8cdc3778294e77428b05f16ec7a60ff8d1f7775a.tar.gz ruby-8cdc3778294e77428b05f16ec7a60ff8d1f7775a.tar.xz ruby-8cdc3778294e77428b05f16ec7a60ff8d1f7775a.zip | |
* file.c (rb_get_path): get path string via "to_path" method if
path object is not a string. [Ruby2]
* gc.c (rb_gc_call_finalizer_at_exit): do not free threads in the
exit finalizers.
* io.c (rb_io_reopen): should use rb_io_check_io().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
| -rw-r--r-- | lib/pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb index c87a6e91c..43126aca3 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -223,7 +223,7 @@ class Pathname end # to_str is implemented so Pathname objects are usable with File.open, etc. - alias to_str to_s + alias to_path to_s def inspect # :nodoc: "#<#{self.class}:#{@path}>" |
