class Crirc::Protocol::User

Overview

A User repretents a IRC client.

It has a nick, id and whois.

Defined in:

crirc/protocol/user.cr

Constant Summary

CHARS_ALPHA = "[a-zA-Z]"
CHARS_FIRST = "#{CHARS_SPECIAL}|#{CHARS_ALPHA}"
CHARS_NEXT = "#{CHARS_FIRST}|#{CHARS_NUM}"
CHARS_NUM = "[0-9\\-]"
CHARS_SPECIAL = "[_\\|\\[\\]\\\\\\`\\^\\{\\}]"

Constructors

Instance Method Summary

Instance methods inherited from class Crirc::Protocol::Target

name : String name

Constructor Detail

def self.new(nick, id = nil, whois = nil) #

[View source]
def self.parse(source : String) : User #

[View source]

Instance Method Detail

def id : String #

[View source]
def name : String #

[View source]
def nick : String #

[View source]
def nick=(nick : String) #

[View source]
def whois : String? #

[View source]