From: Rob Marshall Date: 2013-02-07T16:11:09+09:00 Subject: Re: Implementing DRY with a function call Hi Matthew, Thanks. That was very helpful. By the way, when I do: def func(*args,&ablock), I found: func("this","is","a","test", proc { return_value("something") }) The "proc" ends up as the final member of args, so the yield fails. But both of the following worked: my_block = proc { return_value("something") } func("this","is","a","test",&my_block) and func("this","is","a","test", &proc { return_value("something") }) For now I think I'll stick with: func("this","is","a","test"){ return_value("something") } It makes some sense to me now and avoids the need for "proc". Thanks again, Rob -- Posted via http://www.ruby-forum.com/.