Skip to content

Instantly share code, notes, and snippets.

@zlu
Created May 18, 2011 17:25
Show Gist options
  • Save zlu/979059 to your computer and use it in GitHub Desktop.
Save zlu/979059 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require 'rubygems'
require File.join(File.expand_path('../../lib', __FILE__), 'connfu')
connection = Connfu.setup "usera@localhost", "1"
class AnswerExample
include Connfu
on :offer do
answer
say('hello. this is connfu')
end
end
AnswerExample.new
Connfu.start(connection)
@pgolding
Copy link

Nice and clean - can't wait to start using the connFu gem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment