Forum: Ruby on Rails call method of superclass

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Yannick M. (Guest)
on 2006-06-01 17:06
(Received via mailing list)
Hi again,

 Is it possible to call a method of the superclass within a method with
the same name in the derived class? e.g. : call Test::list from
SubTest::list (SubTest being a subclass of Test)?

 Best regards,

--
----------------------------------------------------------------------
Yannick M. http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
4, avenue G. Lemaître
B-1348 Louvain-la-Neuve
Belgium
Tel: +32-10-47.80.10
Fax: +32-10-47.21.80
Si vous avez des problèmes pour afficher ce message (accents qui ne
passent pas, signature électronique, ...) votre système de mail n'est
pas conforme aux standards modernes, voir
http://www.inma.ucl.ac.be/~majoros/email.html
#JAPH : http://www.inma.ucl.ac.be/~majoros/japh.txt
Thibaut B. (Guest)
on 2006-06-01 17:12
(Received via mailing list)
Hi Yannick

Is it possible to call a method of the superclass within a method with
> the same name in the derived class? e.g. : call Test::list from
> SubTest::list (SubTest being a subclass of Test)?
>

you can call super.
This topic is locked and can not be replied to.