class OperaContacts::ContactFolder
A folder which can contain Contact
and ContactFolder
(use Enumerable functions like .map). Type of Item
.
Example of use:
folder = ContactFolder.new(321, "folder-name") contact = Contact.new(123, "contact-name") folder << contact folder.map{|i| i.name} # ["contact-name"] collection.contacts.map{|i| i.name} # ["contact-name"] collection.folders # []