Skip to content

Commit

Permalink
[ruby/tempfile] Alias #to_s to #inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
the-spectator authored and matzbot committed Dec 5, 2023
1 parent aec5659 commit 494e2e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tempfile.rb
Expand Up @@ -288,6 +288,7 @@ def inspect
"#<#{self.class}:#{path}>"
end
end
alias to_s inspect

protected

Expand Down

0 comments on commit 494e2e4

Please sign in to comment.