Class: Net::IRC::CTCPPing

Inherits:
CTCP
  • Object
show all
Defined in:
lib/net/irc.rb

Constant Summary

Constants inherited from CTCP

Net::IRC::CTCP::CTCP_REGEX

Instance Attribute Summary collapse

Attributes inherited from CTCP

#keyword, #parameters, #source, #target

Instance Method Summary collapse

Methods inherited from CTCP

parse, #to_s

Constructor Details

#initialize(arg = nil) ⇒ CTCPPing

Returns a new instance of CTCPPing.



88
89
90
91
92
93
94
# File 'lib/net/irc.rb', line 88

def initialize(arg = nil)
  if @arg = arg
    super('PING', arg)
  else
    super('PING')
  end
end

Instance Attribute Details

#argObject

Returns the value of attribute arg.



86
87
88
# File 'lib/net/irc.rb', line 86

def arg
  @arg
end