Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added inspect and to_s to User

  • Loading branch information...
commit 2d297c03337c9dc688745be0df30cee26434f0a8 1 parent 33a7331
@danopia authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 user.rb
View
8 user.rb
@@ -19,5 +19,13 @@ def quit message
def dn
LDAP.user_dn @nick
end
+
+ def to_s
+ @nick
+ end
+
+ def inspect
+ "#{@nick}!#{@ident}@#{@cloak}"
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.