Module: Blur

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

Version =

The current version of Blur.

"1.8.6"

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.

Parameters:

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

    the options for the client.

Options Hash (options):

  • networks (Array)

    list of hashes that contain network options.



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

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

.versionString

Get the current version.

Returns:

  • (String)

    The current version of Blur.



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

def self.version
  Version
end