diff options
author | Kazuhiro NISHIYAMA <[email protected]> | 2020-02-04 20:54:20 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <[email protected]> | 2020-02-04 20:56:13 +0900 |
commit | 3c7a09ece8f5ddab2a0e71918dc976cd1cd0ec92 (patch) | |
tree | 9a1def43fbbf4b14dabb8727649fe6058f0d9fa8 /ext/pathname/pathname.c | |
parent | 9b9a621ae35bd6aefe78ff8a22874d8036ddd883 (diff) |
Add call-seq to Pathname#open from File.open
before:
```
open(p1 = v1, p2 = v2, p3 = v3)
```
Diffstat (limited to 'ext/pathname/pathname.c')
-rw-r--r-- | ext/pathname/pathname.c | 7 |
1 files changed, 7 insertions, 0 deletions
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. |