1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2010-03-14 17:45:21 +00:00
parent 1db141ed13
commit 8aa897fc05
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Mon Mar 15 02:43:59 2010 Tanaka Akira <akr@fsij.org>
* tool/transcode-tblgen.rb (Action#hash): defined.
(Action#eql?): ditto.
(Action#==): ditto.
Mon Mar 15 01:52:46 2010 Tanaka Akira <akr@fsij.org>
* tool/transcode-tblgen.rb: refactored.

View file

@ -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