We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30519c4 commit 115c562Copy full SHA for 115c562
activesupport/lib/active_support/core_ext/pathname/existence.rb
@@ -4,7 +4,7 @@ class Pathname
4
# Returns the receiver if the named file exists otherwise returns +nil+.
5
# <tt>pathname.existence</tt> is equivalent to
6
#
7
- # pathname.exists? ? object : nil
+ # pathname.exists? ? pathname : nil
8
9
# For example, something like
10
0 commit comments