From 3c7a09ece8f5ddab2a0e71918dc976cd1cd0ec92 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 4 Feb 2020 20:54:20 +0900 Subject: [PATCH] Add call-seq to Pathname#open from File.open before: ``` open(p1 = v1, p2 = v2, p3 = v3) ``` --- ext/pathname/pathname.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index e511560500..6b51b15f10 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -657,6 +657,13 @@ path_make_link(VALUE self, VALUE old) } /* + * call-seq: + * pathname.open() + * pathname.open(mode="r" [, opt]) -> file + * pathname.open([mode [, perm]] [, opt]) -> file + * pathname.open(mode="r" [, opt]) {|file| block } -> obj + * pathname.open([mode [, perm]] [, opt]) {|file| block } -> obj + * * Opens the file for reading or writing. * * See File.open.