From: "Pablo C." Date: 2010-11-20T02:57:53+09:00 Subject: Re: method signature - do I use named parameters OR pass a hash Option 3 - def this_method (required_param, options = {}) - a = this_method ('required value', :time => 11) Option 4 - def this_method (params = {:time => 'default value', :search_string => 'default value}) - a = this_method (:time => 11) I prefer this approach to use hash params (named hashed params). It's easier to know the method's parameters, you don't need read the method body, to knows the parameters names It's easier to implement tests (TDD), you don't have N possibilities to the parameteres, because you have default values -- Posted via http://www.ruby-forum.com/.