Skip to content
Permalink
Browse files

Reclassified #execute methods in 'executing' protocol.

Brings consistence and solves issue #9
  • Loading branch information...
juliendelplanque committed Aug 10, 2019
1 parent 03604be commit 19c1ee0db83830abe3ee68ea0a11581765e90df6
@@ -32,7 +32,7 @@ CmAbstractCommand >> context: anObject [
^ self subclassResponsibility
]

{ #category : #hooks }
{ #category : #executing }
CmAbstractCommand >> execute [
"Execute the actions that should be done by the command.
This method expect that the context has been put in #context inst. var. if any context is relevant."
@@ -41,7 +41,7 @@ CmBlockCommand >> canBeRunBlock: anObject [
canBeRunBlock := anObject
]

{ #category : #execution }
{ #category : #executing }
CmBlockCommand >> execute [
self hasContext
ifTrue: [ block value: self context ]
@@ -72,7 +72,7 @@ CmCommandDecorator >> description [
^ self decoratedCommand description
]

{ #category : #hooks }
{ #category : #executing }
CmCommandDecorator >> execute [
self decoratedCommand execute
]

0 comments on commit 19c1ee0

Please sign in to comment.
You can’t perform that action at this time.