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

ruby-changes:28570

From: zzak <ko1@a...>
Date: Thu, 9 May 2013 11:30:57 +0900 (JST)
Subject: [ruby-changes:28570] zzak:r40622 (trunk): * string.c: Add call-seq alias for String#=== [Bug #8381]

zzak	2013-05-09 11:30:47 +0900 (Thu, 09 May 2013)

  New Revision: 40622

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

  Log:
    * string.c: Add call-seq alias for String#=== [Bug #8381]

  Modified files:
    trunk/ChangeLog
    trunk/string.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40621)
+++ ChangeLog	(revision 40622)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu May  9 11:30:02 2013  Zachary Scott	 <zachary@z...>
+
+	* string.c: Add call-seq alias for String#=== [Bug #8381]
+
 Thu May  9 11:14:18 2013  Zachary Scott	 <zachary@z...>
 
 	* doc/contributing.rdoc: Add guide for contributing to CRuby
Index: string.c
===================================================================
--- string.c	(revision 40621)
+++ string.c	(revision 40622)
@@ -2342,7 +2342,8 @@ str_eql(const VALUE str1, const VALUE st https://github.com/ruby/ruby/blob/trunk/string.c#L2342
 }
 /*
  *  call-seq:
- *     str == obj   -> true or false
+ *     str == obj    -> true or false
+ *     str === obj   -> true or false
  *
  *  Equality---If <i>obj</i> is not a <code>String</code>, returns
  *  <code>false</code>. Otherwise, returns <code>true</code> if <i>str</i>

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

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