module RubyWolf class Configuration < BasicObject DEFAULT_DAEMON = false DEFAULT_HOST = '0.0.0.0'.freeze DEFAULT_PORT = 3000 DEFAULT_WORKER = 4 def initialize @configs = { daemon: DEFAULT_DAEMON, worker: DEFAULT_WORKER, host: DEFAULT_HOST, port: DEFAULT_PORT } end def []=(key, value) @configs[key] = value end def [](key) @configs[key] end end end