I tried to make private the write accessor for an attribute (e.g., foo) 
that I want to protect by defining:

Code :   - fold - unfold

   1. def foo=val
   2.   super
   3. end

However, when I make the write accessor private, I cannot even call it 
from inside the class because a statement such as self.foo = val returns 
NoMethodError: Attempt to call private method
Please help.  Thanks.
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to