Class: Net::IRC::ErrNeedreggednick

Inherits:
Error show all
Defined in:
lib/net/irc.rb

Overview

477 <target> <channel> :<text>

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

Attributes inherited from ReplyWithTarget

#target

Attributes inherited from Reply

#text

Attributes inherited from Message

#command, #parameters, #prefix

Instance Method Summary collapse

Methods inherited from Message

command_for_number, parse, #prefix?, #to_s, #write

Constructor Details

#initialize(target, channel, text) ⇒ ErrNeedreggednick

Returns a new instance of ErrNeedreggednick.



483
484
485
486
487
# File 'lib/net/irc.rb', line 483

def initialize(target, channel, text)
  @channel = channel
  
  super(nil, 'ERR_NEEDREGGEDNICK', target, channel, text)
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



481
482
483
# File 'lib/net/irc.rb', line 481

def channel
  @channel
end