class Test::Unit::Util::ProcWrapper

def ==(other)

def ==(other)
  case(other)
  when ProcWrapper
    return @a_proc == other.to_proc
  else
    return super
  end
end

def hash

def hash
  return @hash
end

def initialize(a_proc)

Creates a new wrapper for a_proc.
def initialize(a_proc)
  @a_proc = a_proc
  @hash = a_proc.inspect.sub(/^(#<#{a_proc.class}:)/){''}.sub(/(>)$/){''}.hex
end

def to_proc

def to_proc
  return @a_proc
end