From: Benjamin Pyles Date: 2006-05-06T03:51:27+09:00 Subject: Question on self (Newbie) I am working my way through some tutorials and books on Ruby and i am trying to understand the various uses of the self object. For example this code from Agile rails: def self.login(name,password) # code here end def try_to_login User.login(self.name, self.password) end #Both functions belong to a class Named User Now I understand the self.name and self password reference the calling object. However, I am still trying to figure out why in this example the function is prefixed with self. Ben -- Posted via http://www.ruby-forum.com/.