concept contact in category ruby

This is an excerpt from Manning's book Ruby in Practice.
The test suite for the gdbm implementation is similar to the one for the YAML implementation, but there are a few differences. One extra step here is creating the gdbm_contacts directory, so that the tests will be able to find it
. Also, some tests have been replaced to show you some of what you might want to do specifically for gdbm (though neither test suite is exhaustive). It’s now necessary to add the contact to the list before setting any of the contact’s properties
. The reason is the hash-to-database magic only works if the contact’s components—home, work, extras—are gdbm file handles. And that will only happen when the Contact objects become part of a ContactList; it’s the ContactList object that knows where the directory of gdbm files is.
. Also, some tests have been replaced to show you some of what you might want to do specifically for gdbm (though neither test suite is exhaustive). It’s now necessary to add the contact to the list before setting any of the contact’s properties
. The reason is the hash-to-database magic only works if the contact’s components—home, work, extras—are gdbm file handles. And that will only happen when the Contact objects become part of a ContactList; it’s the ContactList object that knows where the directory of gdbm files is.