aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAkshay Birajdar <akshaybirajdar05@gmail.com>2023-05-01 16:02:38 +0530
committergit <svn-admin@ruby-lang.org>2023-12-05 06:43:42 +0000
commit494e2e4bfb28349a19b4503e37ac11509de1d50e (patch)
tree1891aab19eb84e5478b671fd788a324fbe1fa6c4 /lib
parentaec56594e78324366c4e248cc7de3a4bd4507679 (diff)
downloadruby-494e2e4bfb28349a19b4503e37ac11509de1d50e.tar.gz
[ruby/tempfile] Alias #to_s to #inspect
https://github.com/ruby/tempfile/commit/e515889412
Diffstat (limited to 'lib')
-rw-r--r--lib/tempfile.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 43174082a0..2a21a427db 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -288,6 +288,7 @@ class Tempfile < DelegateClass(File)
"#<#{self.class}:#{path}>"
end
end
+ alias to_s inspect
protected