Class: Irc::ListMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::ListMessage
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/message.rb
Overview
class to manage LIST replies
Instance Attribute Summary (collapse)
-
- (Object) list
Returns the value of attribute list.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary (collapse)
-
- (ListMessage) initialize(bot, server, source, target, list = Hash.new)
constructor
A new instance of ListMessage.
- - (Object) inspect
Methods inherited from BasicUserMessage
#address?, #botuser, #identified?, #parse_channel_list, #prefixed?, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour
Constructor Details
- (ListMessage) initialize(bot, server, source, target, list = Hash.new)
Returns a new instance of ListMessage
618 619 620 621 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 618 def initialize(bot, server, source, target, list=Hash.new) super(bot, server, source, target, "") @list = [] end |
Instance Attribute Details
- (Object) list
Returns the value of attribute list
617 618 619 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 617 def list @list end |
Instance Method Details
- (Object) inspect
623 624 625 626 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 623 def inspect fields = ' list=' << list.inspect super(fields) end |