Final one: = MCStWriter = I write Category/Classes/Methods/.... definitions into Monticello source.stfile format found in .mcz packages. See also MCStReader Example: String streamContents: [:aStream| |writer| writer := MCStWriter on: aStream. writer writeDefinitions: {True asClassDefinition. False asClassDefinition}. ] = MCStReader = I read Category/Classes/Methodes/.... definitions from Monticello source.stfile format. See also MCStWriter. Example: |source| source := String streamContents: [:aStream| |writer| writer := MCStWriter on: aStream. writer writeDefinitions: {True asClassDefinition. False asClassDefinition}. ]. (MCStReader on: source readStream) definitions explore. Laurent On Tue, Mar 22, 2011 at 6:40 PM, laurent laffont <laurent.laffont@gmail.com>wrote:
On Tue, Mar 22, 2011 at 6:20 PM, laurent laffont < laurent.laffont@gmail.com> wrote:
Today: MCStWriter
I write Category/Classes/Methods/.... definitions into Monticello source.st file format found in .mcz packages.
Example:
String streamContents: [:aStream| |writer| writer := MCStWriter on: aStream. writer writeDefinitions: {True asClassDefinition. False asClassDefinition}. ]
Laurent.
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
Laurent