Method: Jabber::XMPPElement#initialize
- Defined in:
- lib/vendor/xmpp4r/lib/xmpp4r/xmppelement.rb
#initialize(*arg) ⇒ XMPPElement
Initialize this element, which will then be initialized with the name registered with name_xmlns.
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/xmppelement.rb', line 98 def initialize(*arg) if arg.empty? name, xmlns = self.class::name_xmlns_for_class(self.class) super(name) if self.class::force_xmlns? add_namespace(xmlns) end else super end end |