Project

General

Profile

Feature #260

String should have a crypt! method

Added by rlaager (Richard Laager) about 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
[ruby-core:17747]

Description

=begin
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.
=end

History

#1

Updated by rlaager (Richard Laager) about 11 years ago

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

#2

Updated by matz (Yukihiro Matsumoto) about 11 years ago

  • Status changed from Open to Rejected
  • Assignee set to matz (Yukihiro Matsumoto)

=begin
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.
=end

Also available in: Atom PDF