1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add call-seq to Pathname#open from File.open

before:
```
  open(p1 = v1, p2 = v2, p3 = v3)
```
This commit is contained in:
Kazuhiro NISHIYAMA 2020-02-04 20:54:20 +09:00
parent 9b9a621ae3
commit 3c7a09ece8
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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. * Opens the file for reading or writing.
* *
* See File.open. * See File.open.