On Tue, Dec 7, 2010 at 3:13 PM, Fritz Trapper <ajfrenzel / web.de> wrote: > The charm of LAMBEAU Bernard's approach is, that #{expr} is much more > powerful, than a simple substitution. It enables to hardwire defaults > for non-existing, or nil variables. You can do the same with the method approach I suggested. > But using a hash as parameter container is also interesting. Without knowing more details about your application case I personally find these suggested generic solutions overly complicated. YMMV though. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/