Subject: define an each iterator, etc.
From: Guillaume Nargeot <guillaume.nargeotDONOTFUCKINGSPAM fusionsystems.co.jp>
Date: Mon, 26 Feb 2007 10:45:05 +0900
I would like to know if it's possible to define iterators like each for a
class you have written ?
Is it also possible to write methods that can have the following
behavior/usage:
object.method do |var|
# something
end