From: Trans Date: 2007-11-04T11:04:45+09:00 Subject: Re: Passing keyword arguments On Nov 3, 8:50 pm, Brian Adkins wrote: > How flexible do you need to be with the argument handling? Would > something like the following work? > > def foo a, b='default', opts={} > puts "a is #{a}, b is #{b}" > opts.each {|k,v| puts "#{k} => #{v}"} > puts '-'*10 > end > > def bar opt, a, b='default2', opts={} > foo a, b, opts.merge!({:baz => opt}) > end Problem is I need *args (an untold amount). T.