ruby-changes:15048
From: akr <ko1@a...>
Date: Mon, 15 Mar 2010 02:45:40 +0900 (JST)
Subject: [ruby-changes:15048] Ruby:r26924 (trunk): * tool/transcode-tblgen.rb (Action#hash): defined.
akr 2010-03-15 02:45:21 +0900 (Mon, 15 Mar 2010) New Revision: 26924 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26924 Log: * tool/transcode-tblgen.rb (Action#hash): defined. (Action#eql?): ditto. (Action#==): ditto. Modified files: trunk/ChangeLog trunk/tool/transcode-tblgen.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 26923) +++ ChangeLog (revision 26924) @@ -1,3 +1,9 @@ +Mon Mar 15 02:43:59 2010 Tanaka Akira <akr@f...> + + * tool/transcode-tblgen.rb (Action#hash): defined. + (Action#eql?): ditto. + (Action#==): ditto. + Mon Mar 15 01:52:46 2010 Tanaka Akira <akr@f...> * tool/transcode-tblgen.rb: refactored. Index: tool/transcode-tblgen.rb =================================================================== --- tool/transcode-tblgen.rb (revision 26923) +++ tool/transcode-tblgen.rb (revision 26924) @@ -69,6 +69,16 @@ @value = value end attr_reader :value + + def hash + @value.hash + end + + def eql?(other) + self.class == other.class && + @value == other.value + end + alias == eql? end class ActionMap -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/