ruby-changes:59923
From: Kazuhiro <ko1@a...>
Date: Tue, 4 Feb 2020 20:56:39 +0900 (JST)
Subject: [ruby-changes:59923] 3c7a09ece8 (master): Add call-seq to Pathname#open from File.open
https://git.ruby-lang.org/ruby.git/commit/?id=3c7a09ece8 From 3c7a09ece8f5ddab2a0e71918dc976cd1cd0ec92 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Tue, 4 Feb 2020 20:54:20 +0900 Subject: Add call-seq to Pathname#open from File.open before: ``` open(p1 = v1, p2 = v2, p3 = v3) ``` 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) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L657 } /* + * 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. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/