Sha256: 01c556fdfafa188885afed267be595407bc344da7cba21cde000f3769a672015
Contents?: true
Size: 541 Bytes
Versions: 4
Compression:
Stored size: 541 Bytes
Contents
module RubyWolf class Configuration < BasicObject DEFAULT_DAEMON = false DEFAULT_HOST = '0.0.0.0'.freeze DEFAULT_PORT = 3000 DEFAULT_WORKER = 4 DEFAULT_ENVIRONMENT = 'development'.freeze def initialize @configs = { daemon: DEFAULT_DAEMON, worker: DEFAULT_WORKER, host: DEFAULT_HOST, port: DEFAULT_PORT, environment: DEFAULT_ENVIRONMENT } end def []=(key, value) @configs[key] = value end def [](key) @configs[key] end end end
Version data entries
4 entries across 4 versions & 1 rubygems