0
|
1 |
"{ Package: 'stx:goodies/ring' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
RGContainer subclass:#RGSlice
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Ring-Core-Containers'
|
|
10 |
!
|
|
11 |
|
|
12 |
RGSlice comment:'A slice is an arbitrary container of elements (working unit)
By inheritance it knows how to treat classes and methods
'
|
|
13 |
!
|
|
14 |
|
|
15 |
!RGSlice methodsFor:'adding/removing'!
|
|
16 |
|
|
17 |
addElement: aRGDefinition in: aCollection
|
|
18 |
|
|
19 |
aRGDefinition environment: self.
|
|
20 |
super addElement: aRGDefinition in: aCollection
|
|
21 |
! !
|
|
22 |
|
|
23 |
!RGSlice methodsFor:'testing'!
|
|
24 |
|
|
25 |
isSlice
|
|
26 |
|
|
27 |
^true
|
|
28 |
! !
|
|
29 |
|