Skip to content

Commit

Permalink
Add blocStencilto number description [feenkcom/gtoolkit#2543]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed May 17, 2022
1 parent 391bd0b commit 8512330
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source/Magritte-Model/MANumberDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of numbers, possible values are instances of ==Number== and a
Class {
#name : #MANumberDescription,
#superclass : #MAMagnitudeDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down Expand Up @@ -41,3 +41,14 @@ MANumberDescription >> beNegative [
MANumberDescription >> bePositive [
self addCondition: (MACondition selector: #positive) labelled: 'No positive number was entered'
]

{ #category : #accessing }
MANumberDescription >> blocStencil [

^ self propertyAt: #blocStencil ifAbsent: [ nil ]
]

{ #category : #accessing }
MANumberDescription >> blocStencil: aBlock [
self propertyAt: #blocStencil put: aBlock
]

0 comments on commit 8512330

Please sign in to comment.