summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-02-04 20:54:20 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-02-04 20:56:13 +0900
commit3c7a09ece8f5ddab2a0e71918dc976cd1cd0ec92 (patch)
tree9a1def43fbbf4b14dabb8727649fe6058f0d9fa8 /ext
parent9b9a621ae35bd6aefe78ff8a22874d8036ddd883 (diff)
Add call-seq to Pathname#open from File.open
before: ``` open(p1 = v1, p2 = v2, p3 = v3) ```
Diffstat (limited to 'ext')
-rw-r--r--ext/pathname/pathname.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index e511560..6b51b15 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.