Class | Irc::Channel::Topic |
In: |
lib/rbot/irc.rb
|
Parent: | Object |
A Topic represents the topic of a channel. It consists of the topic itself, who set it and when
text | -> | to_s |
set_by | [RW] | |
set_on | [RW] | |
text | [RW] |
Replace a Topic with another one
# File lib/rbot/irc.rb, line 1294 1294: def replace(topic) 1295: raise TypeError, "#{topic.inspect} is not of class #{self.class}" unless topic.kind_of?(self.class) 1296: @text = topic.text.dup 1297: @set_by = topic.set_by.dup 1298: @set_on = topic.set_on.dup 1299: end