Class: Net::IRC::RplIsupport

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

Overview

005 <target> ( [ “-” ] <parameter> ) | ( <parameter> “=” [ <value> ] ) *( ( [ “-” ] <parameter> ) | ( <parameter> “=” [ <value> ] ) ) :are supported by this server

Defined Under Namespace

Classes: Parameter

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary

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, *args) ⇒ RplIsupport

Returns a new instance of RplIsupport.

Raises:

  • (ArgumentError)


331
332
333
334
335
336
337
# File 'lib/net/irc.rb', line 331

def initialize(target, *args)
  raise ArgumentError, "wrong number of arguments (#{1 + args.size} for 3)" if args.size < 2
  
  @parameters = args[0..-2].collect { |p| Parameter.new(p) }
  
  super(nil, 'RPL_ISUPPORT', target, *args)
end