class Blather::Stream::Component
@private
Constants
- NAMESPACE
Public Instance Methods
cleanup()
click to toggle source
Calls superclass method
# File lib/blather/stream/component.rb, line 30 def cleanup @parser.finish if @parser super end
send(stanza)
click to toggle source
Calls superclass method
Blather::Stream#send
# File lib/blather/stream/component.rb, line 20 def send(stanza) stanza.from ||= self.jid if stanza.respond_to?(:from) && stanza.respond_to?(:from=) super stanza end
start()
click to toggle source
# File lib/blather/stream/component.rb, line 25 def start @parser = Parser.new self send "<stream:stream to='#{@jid}' xmlns='#{NAMESPACE}' xmlns:stream='#{STREAM_NS}'>" end