Sha256: b5eaa057c7c502b429ac8682aa255e6166d4ebd33fcde23b04b8c3bad725e0a3
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
# code: # * George Moschovitis <gm@navel.gr> # # (c) 2004 Navel, all rights reserved. # $Id: user.rb 152 2004-11-13 20:02:35Z gmosx $ require "singleton" module N # = Anonymous User # # An anonymous user of the Web Application. This is a base # object, typically extended by the users part. # # Implemented as singleton. # class AnonymousUser include Singleton attr_accessor :name attr_accessor :locale attr_accessor :shader def initialize super @name = "anonymous" @locale = "en" @shader = $default_shader end def anonymous? true end def login # nop end def logout # nop end end end # module
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.4.1 | lib/nitro/server/user.rb |
nitro-0.5.0 | lib/nitro/server/user.rb |
nitro-0.6.0 | lib/nitro/server/user.rb |