Tito Ciuro wrote:
> >> def self.encrypted_password(password, salt)
> >>  string_to_hash = password + salt
> >>  return Digest::SHA1.hexdigest(string_to_hash)
> >> end
> >>
> Well, if I'm looking at some code with a return statement as shown
> above, I tells me that Digest::SHA1.hexdigest returns a string

Where does it tell you that? I don't get it. hexdigest could return anything, 
you can't know it returns a string just by the fact that there's a return in 
front of it. You can only tell that by looking at it's documentation.
What does the return keyword have to do with what kind of object a method 
returns?


-- 
Jabber: sepp2k / jabber.org
ICQ: 205544826