aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r--lib/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb
index c87a6e91ce..43126aca3c 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}>"