We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8e0cae commit aa4d4c6Copy full SHA for aa4d4c6
1 file changed
lib/pathname.rb
@@ -235,7 +235,7 @@ class Pathname
235
# If +path+ contains a NUL character (<tt>\0</tt>), an ArgumentError is raised.
236
#
237
def initialize(path)
238
- path = path.__send__(TO_PATH) if path.respond_to? TO_PATH
+ path = path.to_path if path.respond_to? :to_path
239
@path = path.dup
240
241
if /\0/.match?(@path)
0 commit comments