Method: Thing#add

Defined in:
lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/world.rb

#add(xmlelement) ⇒ Object



280
281
282
283
284
285
286
# File 'lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/world.rb', line 280

def add(xmlelement)
  if xmlelement.kind_of?(REXML::Element) && (xmlelement.name == 'presence')
    super(Jabber::Presence.import(xmlelement))
  else
    super(xmlelement)
  end
end