Remove Named Parameter

The fluency that the named parameter brings is no longer worth the complexity on the receiver.

Convert the named parameter Hash to a standard parameter list.

IsbnSearch.new(:isbn => "0201485672")

image/svg+xml

IsbnSearch.new("0201485672")
  

inverse of Introduce Named Parameter

Additions

Martin Fowler

19 Nov 2013

With Ruby 2.0's named parameters, there is much less need for using hashes to implement named parameters, so most uses of hash can be converted to use Ruby 2's proper named parameters - providing that the code will not need to be run with earlier Rubies.