Sha256: d207b869b64c85d941a60412337902cae3b332cc87d9f287e222a9f9f62eb758
Contents?: true
Size: 251 Bytes
Versions: 20
Compression:
Stored size: 251 Bytes
Contents
require "enumerator" class Ppl::Entity::AddressBook include Enumerable def initialize @contacts = [] end def add_contact(contact) @contacts.push contact end def each @contacts.each { |contact| yield contact } end end
Version data entries
20 entries across 20 versions & 1 rubygems