Parent

Methods

Included Modules

DaemonKit::XMPP

Thin wrapper around the blather DSL

Public Class Methods

new() click to toggle source
# 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
run( &block ) click to toggle source
# 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.