class IRCParser::Prefix
Public: Represents the prefix of an IRC message.
Attributes
host[R]
Public: The hostname of this prefix or nil if no hostname was given.
nick[R]
Public: The nickname of this user.
user[R]
Public: The username of this prefix or nil if no username was given.
Public Class Methods
new(nick: nil, user: nil, host: nil)
click to toggle source
Public: Initialises a new message prefix.
nick - The nickname of this user. user - The username of this prefix or nil if no username was given. host - The hostname of this prefix or nil if no hostname was given.
# File lib/ircparser/prefix.rb, line 35 def initialize nick: nil, user: nil, host: nil @nick = nick @user = user @host = host end