Class: Net::IRC::CTCPAction

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(*parameters) ⇒ CTCPAction

Returns a new instance of CTCPAction.



106
107
108
109
110
# File 'lib/net/irc.rb', line 106

def initialize(*parameters)
  @text = parameters.join(' ')
  
  super('ACTION', *parameters)
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



104
105
106
# File 'lib/net/irc.rb', line 104

def text
  @text
end