Module: Blur

Defined in:
library/blur.rb,
library/blur/script.rb,
library/blur/client.rb,
library/blur/version.rb,
library/blur/network.rb,
library/blur/handling.rb,
library/blur/extension.rb,
library/blur/evaluable.rb,
library/blur/encryption.rb,
library/blur/script/dsl.rb,
library/blur/script/cache.rb,
library/blur/network/user.rb,
library/blur/script/commands.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

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, Evaluable Classes: Client, Extension, Network, Script

Constant Summary

Version =

The current version of Blur.

"1.8.1"

Class Method Summary collapse

Class Method Details

.connect(options = {}, &block) ⇒ Object

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.

Options Hash (options):

  • networks (Array)

    list of hashes that contain network options.



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

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

.versionString

Get the current version.



10
11
12
# File 'library/blur/version.rb', line 10

def self.version
  Version
end