We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
to_path
1 parent 27d3e64 commit 95ad4ceCopy full SHA for 95ad4ce
1 file changed
lib/pathname_builtin.rb
@@ -195,9 +195,6 @@ class Pathname
195
196
# :stopdoc:
197
198
- # to_path is implemented so Pathname objects are usable with File.open, etc.
199
- TO_PATH = :to_path
200
-
201
SAME_PATHS = if File::FNM_SYSCASE.nonzero?
202
# Avoid #zero? here because #casecmp can return nil.
203
proc {|a, b| a.casecmp(b) == 0}
@@ -264,7 +261,7 @@ def to_s
264
261
end
265
262
266
263
# to_path is implemented so Pathname objects are usable with File.open, etc.
267
- alias_method TO_PATH, :to_s
+ alias to_path to_s
268
269
def inspect # :nodoc:
270
"#<#{self.class}:#{@path}>"
0 commit comments