Sha256: 3e7ca03b5dcf7e2d25f55e3e86b138306650c7f8e17947196d0985f653220404
Contents?: true
Size: 413 Bytes
Versions: 4
Compression:
Stored size: 413 Bytes
Contents
# Represents IRC Users class IRCUser @@users = Hash.new() @modes = Hash.new() def IRCUser.create_user(username) username.sub!(/^[\@\%]/,'') if @@users[username] return @@users[username] end @@users[username] = self.new(username) @@users[username] end attr_reader :username, :mask attr_writer :mask private def initialize (username) @username = username end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cerberus-0.7.6 | lib/vendor/irc/lib/IRCUser.rb |
cerberus-0.7.2 | lib/vendor/irc/lib/IRCUser.rb |
cerberus-0.7.5 | lib/vendor/irc/lib/IRCUser.rb |
cerberus-0.7 | lib/vendor/irc/lib/IRCUser.rb |