-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deprecate
#asJson
[feenkcom/gtoolkit#3895]
- Loading branch information
1 parent
27b784f
commit a821f71
Showing
6 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
Extension { #name : #SequenceableCollection } | ||
|
||
{ #category : #'*GToolkit4Json' } | ||
SequenceableCollection >> asJson [ | ||
SequenceableCollection >> asGtJson [ | ||
|
||
^ GtJson forJsonObject: self | ||
] | ||
|
||
{ #category : #'*GToolkit4Json' } | ||
SequenceableCollection >> asJson [ | ||
self | ||
deprecated: 'Please use #asGtJson instead.' | ||
transformWith: '`@receiver asJson' -> '`@receiver asGtJson'. | ||
|
||
^ self asGtJson | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
Extension { #name : #ZnMessage } | ||
|
||
{ #category : #'*GToolkit4Json' } | ||
ZnMessage >> asJson [ | ||
ZnMessage >> asGtJson [ | ||
^ GtJson forJsonString: self contents | ||
] | ||
|
||
{ #category : #'*GToolkit4Json' } | ||
ZnMessage >> asJson [ | ||
self | ||
deprecated: 'Please use #asGtJson instead.' | ||
transformWith: '`@receiver asJson' -> '`@receiver asGtJson'. | ||
|
||
^ self asGtJson | ||
] |