Hi,
In message "[ruby-talk:00483] coderefs"
on 99/07/14, Julian R Fondren <julian / cartotech.com> writes:
|Does Ruby have the concept of an "anonymous" method, similar to Perl's
|sub {} (noting the lack of a subroutine name). I want to store methods
|in a hash of lists in an interactive program.
I think the Proc object will do the job for you.
proc = Proc.new{...}
proc.call(args)
You can retrieve bound method object from objects.
method = obj.method(:method_name)
mathod.call(args)
Hope this helps.
matz.