more concise inspect output for Session objects

git-svn-id: file:///home/svn/framework3/trunk@7949 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2009-12-23 01:03:51 +00:00
parent 89695b40fe
commit 0708798598
1 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,13 @@ module Session
self.sname = name
end
#
# Brief and to the point
#
def inspect
"#<Session:#{self.type} #{self.tunnel_peer}>"
end
#
# Returns the description of the session.
#