Object
Thin wrapper around the blather DSL
# File lib/daemon_kit/xmpp.rb, line 19 def initialize @config = DaemonKit::Config.load('jabber') jid = if @config.resource "#{@config.jabber_id}/#{@config.resource}" else @config.jabber_id end setup jid, @config.password end
# File lib/daemon_kit/xmpp.rb, line 8 def run( &block ) DaemonKit::EM.run xmpp = new xmpp.instance_eval( &block ) xmpp.run end
[Validate]
Generated with the Darkfish Rdoc Generator 2.