Skip to content

Commit

Permalink
GTInspect the components of a NaturalTransformation
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Jun 29, 2024
1 parent a06e8f8 commit 2ef3693
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Refinements/NaturalTransformation.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ NaturalTransformation >> functionSort [
^#MARK_NOT_NIL "FIXME"
]

{ #category : #GT }
NaturalTransformation >> gtInspectorItemsIn: composite [
<gtInspectorPresentationOrder: 10>
components isNil ifTrue: [ ^nil ].
^ composite fastList
title: 'Components';
display: [ components asOrderedCollection ];
beSingle;
format: [ :each | GTObjectPrinter asTruncatedTextFrom: each ]
]

{ #category : #'as yet unclassified' }
NaturalTransformation >> hasComponent: functionName [
^self componentNames includes: functionName
Expand Down

0 comments on commit 2ef3693

Please sign in to comment.