Class String
In: lib/utility/utility.rb
Parent: Object
String
Utility
TopLevel

Methods

Public Instance methods

Encrypts a password

return
The encrypted string

Takes a string containing a list of keywords, like ‘hello world’, and checks if ‘str’ is a prefix of any of those words? "hell" would be true

Compares the password with the string

pwd
The encrypted password
return
true if they are equal, false if not

Checks if ‘str’ is a prefix of this string

Make string into proper name removes digits, downcases and then capitalizes words. Sorry it doesn’t like McManus but likes O’Mally

[Validate]