Sha256: b33138037fdd616f521996d72265d78a4c7e3edeeffac3f03f4739c2260f16aa
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_wolf-0.3.0 | lib/ruby_wolf/configuration.rb |
ruby_wolf-0.2.0 | lib/ruby_wolf/configuration.rb |