Sha256: 469cb54d11696509ac2c4d2fe7f629d295f6fdc6b9d2d8dca8229f6587f6f8e2
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
# = User # # A user of the Web Application. This is a base object, typically # extended by the users part. # #-- # code: # George Moschovitis <gm@navel.gr> # # (c) 2002-2003 Navel, all rights reserved. # $Id: user.rb 86 2004-10-19 13:58:40Z gmosx $ #++ require "singleton" module N # = Anonymous User # # 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 end def logout end end end # module
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.1.2 | lib/n/app/user.rb |