Odd design of the examples

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Odd design of the examples

abergel
Hi!

I believe having a nice support for examples is very important. And the current effort is a nice step toward ubiquitous examples.
But I feel something is weird with the current way to define an example.

I may have raised that problem earlier. But since it is bugging me seriously, I raise it again :-)

If I want to have an example of RTView, I can define the following method:
-=-=-=-=-=-=-=-=
RTView class>>exampleUsingView
        | v |
        v := RTView new.
        v add: RTBox element.
        v open
-=-=-=-=-=-=-=-=

Pressing on the icon will open the view in a window, great. But when I run the test, this method exampleUsingView opens the window. And I do not want that :-(

Instead, I use do not use #example in the method name. But this is awkward...

Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev