Skip to content
Permalink
Browse files

Renamed #canBeRunBlock as #canBeExecutedBlock via a deprecation.

  • Loading branch information...
juliendelplanque committed Aug 13, 2019
1 parent 0ded2ae commit 5a87a1185e071990dd2c684444e7931faa25b67d
Showing with 18 additions and 5 deletions.
  1. +13 −0 src/Commander2-Deprecations/CmBlockCommand.extension.st
  2. +5 −5 src/Commander2/CmBlockCommand.class.st
@@ -0,0 +1,13 @@
Extension { #name : #CmBlockCommand }

{ #category : #'*Commander2-Deprecations' }
CmBlockCommand >> canBeRunBlock [
self deprecated: 'Use #canBeExecutedBlock instead.' transformWith: '`@receiver canBeRunBlock' -> '`@receiver canBeExecutedBlock'.
^ self canBeExecutedBlock
]

{ #category : #'*Commander2-Deprecations' }
CmBlockCommand >> canBeRunBlock: anObject [
self deprecated: 'Use #canBeExecutedBlock: instead.' transformWith: '`@receiver canBeRunBlock: `@arg' -> '`@receiver canBeExecutedBlock: `@arg'.
self canBeExecutedBlock: anObject
]
@@ -8,7 +8,7 @@ Class {
#superclass : #CmCommand,
#instVars : [
'block',
'canBeRunBlock'
'canBeExecutedBlock'
],
#category : #'Commander2-Commands'
}
@@ -32,13 +32,13 @@ CmBlockCommand >> canBeExecuted [
]

{ #category : #accessing }
CmBlockCommand >> canBeRunBlock [
^ canBeRunBlock
CmBlockCommand >> canBeExecutedBlock [
^ canBeExecutedBlock
]

{ #category : #accessing }
CmBlockCommand >> canBeRunBlock: anObject [
canBeRunBlock := anObject
CmBlockCommand >> canBeExecutedBlock: anObject [
canBeExecutedBlock := anObject
]

{ #category : #executing }

0 comments on commit 5a87a11

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