all: intial code import
This commit is contained in:
9
ContactBook.package/ContactBook.class/README.md
Normal file
9
ContactBook.package/ContactBook.class/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
I represent a contact book.
|
||||
|
||||
I have contacts.
|
||||
|
||||
Collaborators:
|
||||
- Veit Heller <veit@veitheller.de>
|
||||
|
||||
Instance Variables
|
||||
contacts: a List of Contacts
|
16
ContactBook.package/ContactBook.class/class/createDefault.st
Normal file
16
ContactBook.package/ContactBook.class/class/createDefault.st
Normal file
@@ -0,0 +1,16 @@
|
||||
instance creation
|
||||
createDefault
|
||||
^ self new
|
||||
addContact: (Contact
|
||||
newNamed: 'Damien Cassou'
|
||||
email: 'damien@cassou.me');
|
||||
addContact: (Contact
|
||||
newNamed: 'Marcus Denker'
|
||||
email: 'marcus.denker@inria.fr');
|
||||
addContact: (Contact
|
||||
newNamed: 'Tudor Girba'
|
||||
email: 'tudor@tudorgirba.com');
|
||||
addContact: (Contact
|
||||
newNamed: 'Clara Allende'
|
||||
email: 'clari.allende@gmail.com');
|
||||
yourself
|
@@ -0,0 +1,3 @@
|
||||
accessing
|
||||
addContact: aContact
|
||||
contacts add: aContact
|
@@ -0,0 +1,3 @@
|
||||
accessing
|
||||
contacts
|
||||
^ contacts
|
@@ -0,0 +1,3 @@
|
||||
initialization
|
||||
initialize
|
||||
contacts := OrderedCollection new.
|
@@ -0,0 +1,3 @@
|
||||
accessing
|
||||
removeContact: aContact
|
||||
contacts remove: aContact
|
14
ContactBook.package/ContactBook.class/properties.json
Normal file
14
ContactBook.package/ContactBook.class/properties.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"category" : "ContactBook",
|
||||
"classinstvars" : [
|
||||
],
|
||||
"classvars" : [
|
||||
],
|
||||
"commentStamp" : "VeitHeller 5/12/2018 14:19",
|
||||
"instvars" : [
|
||||
"contacts" ],
|
||||
"name" : "ContactBook",
|
||||
"pools" : [
|
||||
],
|
||||
"super" : "Object",
|
||||
"type" : "normal" }
|
Reference in New Issue
Block a user