From: "David A. Black" Date: 2005-12-01T12:44:32+09:00 Subject: Re: require! Hi -- On Thu, 1 Dec 2005, Ross Bamford wrote: > It (finally) clicked now, 'require' is just a method... > > Boy do I feel stupid. :| Don't. That's a pretty traditional rite of passage :-) > On another note, though, I also found out that calling amethod(*args) works > with anything with 'each' (any Enumerable?), which made me smile. It was the > post about ranges that made me get that :) Interesting. The mind boggles at the side-effect and hard-to-find bug possibilities :-) But it's quite cool, and I'd never known of it before. class E include Enumerable def each 3.times {|i| puts "Hello!"; yield i } end end def x(*args) p *args end x(*E.new) :-) David -- David A. Black dblack@wobblini.net