ruby-changes:13010
From: nobu <ko1@a...>
Date: Sat, 5 Sep 2009 09:34:04 +0900 (JST)
Subject: [ruby-changes:13010] Ruby:r24755 (trunk): * re.c (Init_Regexp): new methods.
nobu 2009-09-05 09:33:54 +0900 (Sat, 05 Sep 2009) New Revision: 24755 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24755 Log: * re.c (Init_Regexp): new methods. [ruby-core:24748] Modified files: trunk/re.c Index: re.c =================================================================== --- re.c (revision 24754) +++ re.c (revision 24755) @@ -3513,4 +3513,7 @@ rb_define_method(rb_cMatch, "to_s", match_to_s, 0); rb_define_method(rb_cMatch, "inspect", match_inspect, 0); rb_define_method(rb_cMatch, "string", match_string, 0); + rb_define_method(rb_cMatch, "hash", match_hash, 0); + rb_define_method(rb_cMatch, "eql?", match_equal, 1); + rb_define_method(rb_cMatch, "==", match_equal, 1); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/