Class: RubyWolf::Configuration
- Inherits:
- BasicObject
- Defined in:
- lib/ruby_wolf/configuration.rb
Constant Summary collapse
- DEFAULT_DAEMON =
false- DEFAULT_HOST =
'0.0.0.0'.freeze
- DEFAULT_PORT =
3000- DEFAULT_WORKER =
4- DEFAULT_ENVIRONMENT =
'development'.freeze
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 |
# File 'lib/ruby_wolf/configuration.rb', line 9 def initialize @configs = { daemon: DEFAULT_DAEMON, worker: DEFAULT_WORKER, host: DEFAULT_HOST, port: DEFAULT_PORT, environment: DEFAULT_ENVIRONMENT } end |
Instance Method Details
#[](key) ⇒ Object
23 24 25 |
# File 'lib/ruby_wolf/configuration.rb', line 23 def [](key) @configs[key] end |
#[]=(key, value) ⇒ Object
19 20 21 |
# File 'lib/ruby_wolf/configuration.rb', line 19 def []=(key, value) @configs[key] = value end |