Sha256: 8b0fbeb09595497ec44518f2d45e24f5faf7847d901d42ffa7fea3c3f851b36c
Contents?: true
Size: 655 Bytes
Versions: 7
Compression:
Stored size: 655 Bytes
Contents
module Deas class ServerData # The server uses this to "compile" its configuration for speed. NsOptions # is relatively slow everytime an option is read. To avoid this, we read the # options one time here and memoize their values. This way, we don't pay the # NsOptions overhead when reading them while handling a request. attr_reader :error_procs, :logger, :router, :template_source def initialize(args = nil) args ||= {} @error_procs = args[:error_procs] || [] @logger = args[:logger] @router = args[:router] @template_source = args[:template_source] end end end
Version data entries
7 entries across 7 versions & 1 rubygems