Dave Aronson wrote: > P�l Bergstr�m wrote: > >> def crypt_data >> � � �self.name = Crypto.encrypt(self.name,key) >> end >> >> def decrypt_data >> � � �self.name = Crypto.decrypt(self.name,key) >> end > > Are you sure you don't mean @name? This is Ruby, not Python, so self > would generally refer to the class or module, not the object.
That's not true. In an instance method, self refers to the object. > > -Dave Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

