class Crirc::Protocol::Message

Defined in:

crirc/protocol/message.cr

Constant Summary

R_ARG = "(?: (?<arg>#{R_ARG_ONE}(?: #{R_ARG_ONE})*))"
R_ARG_ONE = "(?:[^: ][^ ]*)"
R_CMD = "(?<cmd>[A-Z]+|\\d{3})"
R_MSG = "(?: \\:(?<msg>.+)?)"
R_SRC = "(\\:(?<src>[^[:space:]]+) )"

Constructors

Instance Method Summary

Constructor Detail

def self.new(raw : String) #

[View source]

Instance Method Detail

def argument_list : Array(String) #

[View source]
def arguments : String | Nil #

[View source]
def command : String #

[View source]
def message : String | Nil #

[View source]
def raw : String #

[View source]
def raw_arguments : String #

Concatenation of #arguments and #message. If the message exists, it is preceded by ':'


[View source]
def source : String #

[View source]