Module: Blather::Stanza::Presence::MUC::InstanceMethods

Included in:
Blather::Stanza::Presence::MUC
Defined in:
lib/blather/stanza/presence/muc.rb

Instance Method Summary collapse

Instance Method Details

#inherit(node) ⇒ Object



15
16
17
18
19
# File 'lib/blather/stanza/presence/muc.rb', line 15

def inherit(node)
  muc.remove
  super
  self
end

#mucObject



21
22
23
24
25
26
27
# File 'lib/blather/stanza/presence/muc.rb', line 21

def muc
  unless muc = find_first('ns:x', :ns => MUC.registered_ns)
    self << (muc = XMPPNode.new('x', self.document))
    muc.namespace = self.class.registered_ns
  end
  muc
end