logo       

how to stop the subclass from overriding a method.: msg#02323

ruby-talk

Subject: how to stop the subclass from overriding a method.

Hi

How would one create a method that is accessible from
outside but avoid the subclass from overriding and changing the
definition?

I could declare the private block but this would will not
provide the method to be accessed from outside.

Thanks
Venkat
--
Posted via http://www.ruby-forum.com/.

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise