Sha256: 9e87e9ff20864536157c4a0037bdc64d8b437c86549cbde37de4dc6cd3abe140
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # You can redistribute it and/or modify it under the terms of the GNU GPL 2. $LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..' #require 'qwik/farm' # Do not add farm here. module Qwik class ServerMemory def initialize(config) @config = config @cache = {} end def [](k) @cache[k] end def []=(k, v) @cache[k] = v end # farm def farm # @farm = Farm.new(@config, self) unless defined? @farm # @farm return Farm.new(@config, self) end # template def template @template = TemplateFactory.new(@config) unless defined? @template @template end # catalog def catalog unless defined? @catalog @catalog = CatalogFactory.new @catalog.load_all_here('catalog-??.rb') end @catalog end # act-theme def theme @theme = ThemeFactory.new(@config) unless defined? @theme @theme end # common-session def sessiondb @sessiondb = SessionDB.new(@config) unless defined? @sessiondb @sessiondb end end end
Version data entries
7 entries across 7 versions & 2 rubygems