Skip to content

Commit

Permalink
GsDevKit/GsDevKit_home#321: a bit of a hack to avoid calling GsFile>>…
Browse files Browse the repository at this point in the history
…print: when it isn't present ... simpler than trying to do it at package level
  • Loading branch information
dalehenrich committed Aug 17, 2021
1 parent 08a29a7 commit d5f54a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/tonel/SuperDoit-Core/SuperDoitExecution.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,11 @@ SuperDoitExecution >> stdout [

{ #category : 'private' }
SuperDoitExecution >> ston: anObject on: aStream [
(SuperDoitExecution globalNamed: #'STON')
ifNotNil: [ :ston | ston put: anObject onStreamPretty: aStream ]
ifNil: [
| stonClass |
((GsFile respondsTo: #'print:')
and: [ stonClass := SuperDoitExecution globalNamed: #'STON' ])
ifTrue: [ stonClass put: anObject onStreamPretty: aStream ]
ifFalse: [
"if STON is not present, then our best bet is to print the object"
aStream
nextPutAll: anObject printString;
Expand Down
2 changes: 1 addition & 1 deletion rowan/project.ston
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RwProjectSpecificationV2 {
#packageFormat : 'tonel',
#packageConvention : 'Monticello',
#comment : ''
}
}

0 comments on commit d5f54a6

Please sign in to comment.