aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorzverok <zverok.offline@gmail.com>2022-12-21 22:33:48 +0200
committerVictor Shepelev <zverok.offline@gmail.com>2022-12-23 18:09:49 +0200
commitd61a4cec618b8f5554398fff2ee4656763aeec4e (patch)
tree6ebe997703527dfdacb069f27d529cfcf3e5d315 /io.c
parentc621c6140ad8ace766e616f593f530041d860a23 (diff)
downloadruby-d61a4cec618b8f5554398fff2ee4656763aeec4e.tar.gz
Docs: path: option for IO.new
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index ffca78ac2b..2e51a46635 100644
--- a/io.c
+++ b/io.c
@@ -14777,6 +14777,8 @@ set_LAST_READ_LINE(VALUE val, ID _x, VALUE *_y)
* - +:binmode+: If a truthy value, specifies the mode as binary, text-only otherwise.
* - +:autoclose+: If a truthy value, specifies that the +fd+ will close
* when the stream closes; otherwise it remains open.
+ * - +:path:+ If a string value is provided, it is used in #inspect and is available as
+ * #path method.
*
* Also available are the options offered in String#encode,
* which may control conversion between external internal encoding.