Class: Net::IRC::CTCPPing
Constant Summary
Constants inherited from CTCP
Instance Attribute Summary collapse
-
#arg ⇒ Object
Returns the value of attribute arg.
Attributes inherited from CTCP
#keyword, #parameters, #source, #target
Instance Method Summary collapse
-
#initialize(arg = nil) ⇒ CTCPPing
constructor
A new instance of CTCPPing.
Methods inherited from CTCP
Constructor Details
#initialize(arg = nil) ⇒ 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
#arg ⇒ Object
Returns the value of attribute arg.
86 87 88 |
# File 'lib/net/irc.rb', line 86 def arg @arg end |