Skip to content

Commit

Permalink
Merge pull request #510 from jordanmontt/adding-inspector-transmissio…
Browse files Browse the repository at this point in the history
…n-node

Adding inspector transmission node
  • Loading branch information
MarcusDenker authored Apr 25, 2023
2 parents 1b19f29 + 73e6c2f commit fa5ce86
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/NewTools-Inspector/StInspectorTransmissionNode.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"
I am an inspector node that allows the user to specify a custom transmission. I am made to be used inside the Inspector. The user can specify the `transmissionBlock:`
"
Class {
#name : #StInspectorTransmissionNode,
#superclass : #StInspectorNode,
#instVars : [
'transmissionBlock'
],
#category : #'NewTools-Inspector-Model'
}

{ #category : #'instance initialization' }
StInspectorTransmissionNode class >> hostObject: anObject transmissionBlock: aFullBlockClosure [

^ self new
hostObject: anObject;
transmissionBlock: aFullBlockClosure;
yourself
]

{ #category : #accessing }
StInspectorTransmissionNode >> key [

^ self hostObject
]

{ #category : #accessing }
StInspectorTransmissionNode >> rawValue [

^ transmissionBlock value: hostObject
]

{ #category : #accessing }
StInspectorTransmissionNode >> transmissionBlock: aBlock [

transmissionBlock := aBlock
]

0 comments on commit fa5ce86

Please sign in to comment.