Now, a ProfStef tutorial must subclass AbstractTutorial. Danny has written a simple method to find all tutorials:
AbstractTutorial class >> tutorials ^self subclasses sortBy: [:a :b | a name < b name]. Note that the class name is used to generate the tutorial title (like in Rails). So: HowToMakeYourOwnTutorial title ==> 'How To Make Your Own Tutorial' Laurent > Each package can define each own tutorial entry point method like this: > AlgernonTutorial class>>MyCooooolTutorial > <tutorial> > bla bla bla > > then with: > (PragmaCollector filter: [:pragma | pragma keyword = 'tutorial']) reset > > you get all existing methods with a <tutorial> pragma. > > And no need to manage any registration/unregistration. > > > Cheers > Alain > > > _______________________________________________ > Pharo-project mailing list > Pharo-project@lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project