Feature #260

String should have a crypt! method

Added by rlaager (Richard Laager) almost 4 years ago. Updated about 1 year ago.

[ruby-core:17747]
Status:Rejected Start date:07/12/2008
Priority:Normal Due date:
Assignee:matz (Yukihiro Matsumoto) % Done:

0%

Category:-
Target version:-

Description

For consistency, String should probably have a crypt! method that looks like this:
  def crypt!(salt=nil)
    replace(crypt(salt))
  end

Note: This has salt=nil, from the suggestion in #259.

History

Updated by rlaager (Richard Laager) almost 4 years ago

This is done in the Facets library: http://facets.rubyforge.org/

Updated by matz (Yukihiro Matsumoto) almost 4 years ago

  • Status changed from Open to Rejected
  • Assignee set to matz (Yukihiro Matsumoto)
I see no reason to have String#crypt!
Having a bang method for each string method is just insane.
you need a better reason than consistency to introduce a new method.

Also available in: Atom PDF