[前][次][番号順一覧][スレッド一覧]

ruby-changes:40160

From: hsbt <ko1@a...>
Date: Fri, 23 Oct 2015 15:46:38 +0900 (JST)
Subject: [ruby-changes:40160] hsbt:r52241 (trunk): * string.c: Added method signature to include hash. It's inconsistency

hsbt	2015-10-23 15:46:15 +0900 (Fri, 23 Oct 2015)

  New Revision: 52241

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52241

  Log:
    * string.c: Added method signature to include hash. It's inconsistency
      with `gsub` method signature.
      [ci skip][fix GH-1023] Patch by @danielevans

  Modified files:
    trunk/ChangeLog
    trunk/string.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52240)
+++ ChangeLog	(revision 52241)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 23 15:46:09 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* string.c: Added method signature to include hash. It's inconsistency
+	  with `gsub` method signature.
+	  [ci skip][fix GH-1023] Patch by @danielevans
+
 Fri Oct 23 15:25:51 2015  Shugo Maeda  <shugo@r...>
 
 	* lib/net/imap.rb: remove an empty comment line and -*-.
Index: string.c
===================================================================
--- string.c	(revision 52240)
+++ string.c	(revision 52241)
@@ -4628,6 +4628,7 @@ str_gsub(int argc, VALUE *argv, VALUE st https://github.com/ruby/ruby/blob/trunk/string.c#L4628
 /*
  *  call-seq:
  *     str.gsub!(pattern, replacement)        -> str or nil
+ *     str.gsub!(pattern, hash)               -> str or nil
  *     str.gsub!(pattern) {|match| block }    -> str or nil
  *     str.gsub!(pattern)                     -> an_enumerator
  *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]