| Class | Test::Unit::Util::ProcWrapper |
| In: |
lib/test/unit/util/procwrapper.rb
|
| Parent: | Object |
Allows the storage of a Proc passed through ’&’ in a hash.
Note: this may be inefficient, since the hash being used is not necessarily very good. In Observable, efficiency is not too important, since the hash is only accessed when adding and removing listeners, not when notifying.
# File lib/test/unit/util/procwrapper.rb, line 32
32: def ==(other)
33: case(other)
34: when ProcWrapper
35: return @a_proc == other.to_proc
36: else
37: return super
38: end
39: end