Method: Jabber::Roster::Helper::RosterItem#each_presence

Defined in:
lib/xmpp4r/roster/helper/roster.rb

#each_presence(&block) ⇒ Object

Iterate through all received <presence/> stanzas



422
423
424
425
426
427
# File 'lib/xmpp4r/roster/helper/roster.rb', line 422

def each_presence(&block)
  # Don't lock here, we don't know what block does...
  @presences.each { |pres|
    yield(pres)
  }
end