Skip to content

Commit 50d911e

Browse files
Merge pull request #765 from moosetechnology/add-api-to-mooseabstractgroup
Add #detect:ifFound: to MooseAbstractGroup
2 parents 29c0019 + 842c85f commit 50d911e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/Moose-Core/MooseAbstractGroup.class.st

+12-6
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,21 @@ MooseAbstractGroup >> count: aBlock [
290290
]
291291

292292
{ #category : #enumerating }
293-
MooseAbstractGroup >> detect: aBlock [
294-
295-
^self entities detect: aBlock
293+
MooseAbstractGroup >> detect: aBlock [
294+
295+
^ self entities detect: aBlock
296296
]
297297

298298
{ #category : #enumerating }
299-
MooseAbstractGroup >> detect: aBlock ifNone: anotherBlock [
300-
301-
^self entities detect: aBlock ifNone: anotherBlock
299+
MooseAbstractGroup >> detect: aBlock ifFound: anotherBlock [
300+
301+
^ self entities detect: aBlock ifFound: anotherBlock
302+
]
303+
304+
{ #category : #enumerating }
305+
MooseAbstractGroup >> detect: aBlock ifNone: anotherBlock [
306+
307+
^ self entities detect: aBlock ifNone: anotherBlock
302308
]
303309

304310
{ #category : #enumerating }

0 commit comments

Comments
 (0)