Lots of useful pointer...

Thanks a lot Lukas...


>
> That's not what you want. Ruby classes look very different to
> Smalltalk class definitions. I would do something like:
>
> env := BrowserEnvironment new forPackageNames: #('MyPackage').
> env classesDo: [ :class |
>    stream := FileStream on: class name , '.rb'.
>    " write header of class definition for 'class' "
>    env selectorsForClass: class do: [ :selector |
>       tree := class parseTreeFor: selector.
>       RubyFormatter format: tree on: stream ].
>    " write footer of class definition for 'class' "
>    stream close ]
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Cédrick

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to