root/lang/ruby/net-irc/trunk/examples/client.rb @ 6138

Revision 5939, 316 bytes (checked in by cho45, 6 years ago)

lang/ruby/net-irc/trunk,
lang/ruby/net-irc/trunk/examples/client.rb:

Add client example. [new]

  • Property svn:executable set to *
Line 
1#!/usr/bin/env ruby
2
3
4$LOAD_PATH << "lib"
5$LOAD_PATH << "../lib"
6
7require "rubygems"
8require "net/irc"
9
10require "pp"
11
12class SimpleClient < Net::IRC::Client
13        def initialize(*args)
14                super
15        end
16end
17
18SimpleClient.new("foobar", "6667", {
19        :nick => "foobartest",
20        :user => "foobartest",
21        :real => "foobartest",
22}).start
23
Note: See TracBrowser for help on using the browser.