diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-06 22:39:57 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-06 22:39:57 +0000 |
commit | 6b371332a5de74de6582cfdee56aac4779f4f2a6 (patch) | |
tree | 7c2390b5b77816bdd3c10ade171465acdfc1bab6 /lib/rbot/botuser.rb | |
parent | 4d193a6c8719351147faad15e9a91d391df94952 (diff) |
Improved inspect methods all around
Diffstat (limited to 'lib/rbot/botuser.rb')
-rw-r--r-- | lib/rbot/botuser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index dc137154..9f2620dc 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -321,7 +321,7 @@ class Bot # Inspection
def inspect
- str = "<#{self.class}:#{'0x%08x' % self.object_id}"
+ str = self.__to_s__[0..-2]
str << " (transient)" if @transient
str << ":"
str << " @username=#{@username.inspect}"
|