Home

Awesome

DeepTraverser

DeepTraverser offers a library for traversing object graphs. It is inspired from an original implementation by Mariano Martinez Peck.

Version management

This project use semantic versionning to define the releases. This mean that each stable release of the project will get associate a version number of the form vX.Y.Z.

When a release contains only bug fixes, the patch number increase. When the release contains new features backward compatibles, the minor version increase. When the release contains breaking changes, the major version increase.

Thus, it should be safe to depend on a fixed major version and moving minor version of this project.

Install DeepTraverser

To install DeepTraverser on your Pharo image you can just execute the following script:

    Metacello new
    	githubUser: 'pharo-contributions' project: 'DeepTraverser' commitish: 'master' path: 'src';
    	baseline: 'DeepTraverser';
    	load

To add DeepTraverser to your baseline just add this:

    spec
    	baseline: 'DeepTraverser'
    	with: [ spec repository: 'github://pharo-contributions/DeepTraverser:master/src' ]

Note that you can replace the #master by another branch as #development or a tag as #v1.0.0, #v1.? or #v1.2.? .

Examples

Number
    deep: #subclasses 
    do: [:each | Transcript show: each; cr].

Number deepCollect: #subclasses.

Number
    deep: #subclasses 
    collect: #name.

Number 
    deep: #subclasses 
    do: [:each | Transcript show: each; cr]
    relationDo: [ :from :to | Transcript show: from; show: ' <-- '; show: to; cr ].