Module: Blur

Defined in:
library/blur.rb,
library/blur/client.rb,
library/blur/script.rb,
library/blur/network.rb,
library/blur/handling.rb,
library/blur/encryption.rb,
library/blur/network/user.rb,
library/blur/script/cache.rb,
library/blur/encryption/fish.rb,
library/blur/network/command.rb,
library/blur/network/channel.rb,
library/blur/encryption/base64.rb,
library/blur/network/connection.rb,
library/blur/script/messageparsing.rb

Overview

Blur is a very modular IRC-framework for ruby.

It allows the developer to extend it in multiple ways. It can be by handlers, scripts, communications, and what have you.

Defined Under Namespace

Modules: Encryption Classes: Client, Network, Script

Constant Summary

Version =

The major and minor version-values of Blur.

"1.6.1"

Class Method Summary (collapse)

Class Method Details

+ (Object) connect(options = {}, &block)

Note:

The idea is that this should never stop or return anything.

Instantiates a client with given options and then makes the client instance evaluate the given block to form a DSL.

Parameters:

  • options (Hash) (defaults to: {})

    the options for the client.

Options Hash (options):

  • networks (Array)

    list of hashes that contain network options.



39
40
41
42
43
# File 'library/blur.rb', line 39

def self.connect options = {}, &block
  Client.new(options).tap do |client|
    client.instance_eval &block
  end.connect
end