From: Paul Lutus Date: 2006-08-30T14:40:24+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? #!/usr/bin/ruby -w class A define_method(:trythis) { |a,b,c| puts a,b,c } end a = A.new a.trythis("one","two","three") one two three a.trythis() in `trythis': wrong number of arguments (0 for 3) (ArgumentError) -- Paul Lutus http://www.arachnoid.com