From 8aa897fc05bed40efba33c9d41c29a8e28162372 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 14 Mar 2010 17:45:21 +0000 Subject: * tool/transcode-tblgen.rb (Action#hash): defined. (Action#eql?): ditto. (Action#==): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/transcode-tblgen.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tool/transcode-tblgen.rb') diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb index 0fc89a7f05..48407ac3df 100755 --- a/tool/transcode-tblgen.rb +++ b/tool/transcode-tblgen.rb @@ -69,6 +69,16 @@ class Action @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 -- cgit v1.2.1