Skip to content

Commit

Permalink
Fix playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Jun 24, 2024
1 parent 6bc246a commit b6fb3d1
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/Pyramid/PyramidSpCodeObjectInteractionModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,38 @@ Class {
{ #category : 'accessing' }
PyramidSpCodeObjectInteractionModel >> doItReceiver [

self projectModel selection ifEmpty: [ ^ self projectModel firstLevelElements ].
self projectModel selection size = 1 ifTrue: [ ^self projectModel selection first ].
self projectModel selection ifEmpty: [
^ self projectModel firstLevelElements ].
self projectModel selection size = 1 ifTrue: [
^ self projectModel selection first ].
^ self projectModel selection asArray
]

{ #category : 'as yet unclassified' }
PyramidSpCodeObjectInteractionModel >> doItReceiverString [

self projectModel selection ifEmpty: [ ^ 'the collection of first level elements' ].
self projectModel selection ifEmpty: [
^ 'the collection of first level elements' ].
self projectModel selection size = 1 ifTrue: [
^ 'the selected element' ].
^ 'an array of <1p> selected elements' expandMacrosWith:
self projectModel selection size
]

{ #category : 'as yet unclassified' }
PyramidSpCodeObjectInteractionModel >> isScripting [

^ true
]

{ #category : 'accessing' }
PyramidSpCodeObjectInteractionModel >> projectModel [

^ projectModel

]

{ #category : 'accessing' }
PyramidSpCodeObjectInteractionModel >> projectModel: aProjectModel [

projectModel := aProjectModel.
PyramidSpCodeObjectInteractionModel >> projectModel: anObject [

projectModel := anObject
]

0 comments on commit b6fb3d1

Please sign in to comment.