> No, sorry. I'm trying to _truly_ make an attribute private. I want > nobody but my instance (self) to be able to access this attribute. > There's nothing like attr_private to my knowledge, though, so I > declared private methods.
I'd question *why* you want that to be completely private, what is it you're hoping to achieve. Users of your code will *always* be able to call your method, there's simply no way for you to stop them: @object.__send__(:your_secret_method) # PWN3D!!!! There's currently no way to mark an attribute as private, and we could probably add that as an enhancement, but I'm a little confused what the use case is. -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
