From: Joel VanderWerf Date: 2006-08-30T14:08:00+09:00 Subject: Re: Using define_method to create a method that takes arguments Wes Gamble wrote: > How does one use define_method to create a method that can take > arguments? > > Is that possible? > > Wes > Use a block that has arguments: irb(main):003:0> class << self; define_method :foo do |x, *y| p x, y; end; end => # irb(main):004:0> foo 1,2,3 1 [2, 3] => nil -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407