module OperaContacts::Collection

Attributes

items[R]

Public Instance Methods

<<(item) click to toggle source
# File lib/opera-contacts/contacts.rb, line 15
def <<(item)
  @items = [] if @items.nil?
  @items << item
end
contacts() click to toggle source
# File lib/opera-contacts/contacts.rb, line 24
def contacts
  return self.find_all{|i| i.is_a? Contact}
end
each(&block) click to toggle source
# File lib/opera-contacts/contacts.rb, line 29
def each(&block)
  @items = [] if @items.nil?
  @items.each(&block)
end
folders() click to toggle source
# File lib/opera-contacts/contacts.rb, line 20
def folders
  return self.find_all{|i| i.is_a? ContactFolder}
end