summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2026-05-06 18:32:58 -0500
committerGitHub <noreply@github.com>2026-05-06 19:32:58 -0400
commit1b8c09e25798ca2293252602921f2087778c5172 (patch)
treeb3bb808ac08dd6477f74a7af1b8dbcc929a253bf
parent53ce4ce085ad3be97b2a9ccb5be187cae8f3eae2 (diff)
[DOC] Doc for Pathname#binwrite (#16869)
-rw-r--r--pathname_builtin.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/pathname_builtin.rb b/pathname_builtin.rb
index 1d7e0354ba..484780da94 100644
--- a/pathname_builtin.rb
+++ b/pathname_builtin.rb
@@ -1156,9 +1156,11 @@ class Pathname # * File *
#
def write(...) File.write(@path, ...) end
- # Writes +contents+ to the file, opening it in binary mode.
+ # call-seq:
+ # binwrite(string, offset = 0, **opts) -> nonnegative_integer
#
- # See File.binwrite.
+ # Behaves like #write, except that the file is opened in binary mode
+ # with ASCII-8BIT encoding.
def binwrite(...) File.binwrite(@path, ...) end
# call-seq: