summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pathname_builtin.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/pathname_builtin.rb b/pathname_builtin.rb
index 8e856dd6a2..452c2ddee2 100644
--- a/pathname_builtin.rb
+++ b/pathname_builtin.rb
@@ -130,6 +130,7 @@
# - #read(*args)
# - #binread(*args)
# - #readlines(*args)
+# - #sysopen(*args)
# - #write(*args)
# - #binwrite(*args)
# - #atime
@@ -170,11 +171,6 @@
# - #mkdir(*args)
# - #opendir(*args)
#
-# === IO
-#
-# This method is a facade for IO:
-# - #sysopen(*args)
-#
# === Utilities
#
# These methods are a mixture of Find, FileUtils, and others:
@@ -865,11 +861,6 @@ class Pathname
end
end
-class Pathname # * IO *
- # See <tt>IO.sysopen</tt>.
- def sysopen(...) IO.sysopen(@path, ...) end
-end
-
class Pathname # * File *
#
# #each_line iterates over the line in the file. It yields a String object
@@ -892,6 +883,9 @@ class Pathname # * File *
# See <tt>File.readlines</tt>. Returns all the lines from the file.
def readlines(...) File.readlines(@path, ...) end
+ # See <tt>File.sysopen</tt>.
+ def sysopen(...) File.sysopen(@path, ...) end
+
# Writes +contents+ to the file. See <tt>File.write</tt>.
def write(...) File.write(@path, ...) end