From: James Date: 2005-02-12T18:25:12+09:00 Subject: Re: [Newbie] Efficient method lookup from integer gabriele renzi wrote: > James ha scritto: >> What would be a good ruby idiom to move efficiently from >> a positive integer in the range 0 to ~2000 to a specific >> method call? > ... > Why do you want that? > > ... just call them with > > module.send "method_#{number}" The simple answer is, I am still learning ruby and did not know about either module.send or the .call idiom used in some other answers. [Newbie] as a subject prefix is intended to show myself as a beginner. I am grateful to everyone who has helped me so quickly. Thanks! Best Wishes, James -- "Be excellent to each other", Bill & Ted