summaryrefslogtreecommitdiff
path: root/lib/rbot/plugins.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-06 22:39:57 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-06 22:39:57 +0000
commit6b371332a5de74de6582cfdee56aac4779f4f2a6 (patch)
tree7c2390b5b77816bdd3c10ade171465acdfc1bab6 /lib/rbot/plugins.rb
parent4d193a6c8719351147faad15e9a91d391df94952 (diff)
Improved inspect methods all around
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r--lib/rbot/plugins.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index 5ad1ebb1..12fade3e 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -369,6 +369,19 @@ module Plugins
bot_associate(nil)
end
+ def inspect
+ ret = self.to_s[0..-2]
+ ret << ' corebotmodules='
+ ret << @botmodules[:CoreBotModule].map { |m|
+ m.name
+ }.inspect
+ ret << ' plugins='
+ ret << @botmodules[:Plugin].map { |m|
+ m.name
+ }.inspect
+ ret << ">"
+ end
+
# Reset lists of botmodules
def reset_botmodule_lists
@botmodules[:CoreBotModule].clear