Sha256: 59d07befcd0eace70dacd542d514d649209f2946a089e9f46322182b2043dd5a
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
# =XMPP4R - XMPP Library for Ruby # License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option. # Website::http://xmpp4r.github.io require 'xmpp4r/iq' require 'xmpp4r/dataforms/x/data' module Jabber module FeatureNegotiation ## # Feature negotiation, # can appear as direct child to Iq # or as child of IqSi class IqFeature < XMPPElement name_xmlns 'feature', 'http://jabber.org/protocol/feature-neg' ## # First <x/> child with xmlns='jabber:x:data' def x res = nil each_element('x') { |e| res = e if e.namespace == 'jabber:x:data' } res end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmpp4r-0.5.6 | lib/xmpp4r/feature_negotiation/iq/feature.rb |