summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-14 17:45:21 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-14 17:45:21 +0000
commit8aa897fc05bed40efba33c9d41c29a8e28162372 (patch)
treeac2111d20bd570cc284e37bb1c72ff548fe156df /tool
parent1db141ed13454411acbf0e77cb91408514eacbe7 (diff)
* 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
Diffstat (limited to 'tool')
-rwxr-xr-xtool/transcode-tblgen.rb10
1 files changed, 10 insertions, 0 deletions
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