Project

General

Profile

Actions

Feature #260

closed

String should have a crypt! method

Added by rlaager (Richard Laager) almost 16 years ago. Updated almost 13 years ago.

Status:
Rejected
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

Actions #1

Updated by rlaager (Richard Laager) almost 16 years ago

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

Actions #2

Updated by matz (Yukihiro Matsumoto) almost 16 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

Actions

Also available in: Atom PDF

Like0
Like0Like0