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

Version Path
ppl-1.8.0 lib/ppl/entity/address_book.rb
ppl-1.7.0 lib/ppl/entity/address_book.rb
ppl-1.6.0 lib/ppl/entity/address_book.rb
ppl-1.5.3 lib/ppl/entity/address_book.rb
ppl-1.5.2 lib/ppl/entity/address_book.rb
ppl-1.5.1 lib/ppl/entity/address_book.rb
ppl-1.5.0 lib/ppl/entity/address_book.rb
ppl-1.4.1 lib/ppl/entity/address_book.rb
ppl-1.3.0 lib/ppl/entity/address_book.rb
ppl-1.2.0 lib/ppl/entity/address_book.rb
ppl-1.1.0 lib/ppl/entity/address_book.rb
ppl-1.0.6 lib/ppl/entity/address_book.rb
ppl-1.0.5 lib/ppl/entity/address_book.rb
ppl-1.0.4 lib/ppl/entity/address_book.rb
ppl-1.0.3 lib/ppl/entity/address_book.rb
ppl-1.0.1 lib/ppl/entity/address_book.rb
ppl-1.0.0 lib/ppl/entity/address_book.rb
ppl-0.9.0 lib/ppl/entity/address_book.rb
ppl-0.3.0 lib/ppl/entity/address_book.rb
ppl-0.2.0 lib/ppl/entity/address_book.rb