mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
puma/configuration.rb - 'overview' doc fixup [ci skip]
This commit is contained in:
parent
5432a7cfc4
commit
0f5c7f3830
1 changed files with 8 additions and 7 deletions
|
@ -108,16 +108,17 @@ module Puma
|
|||
#
|
||||
# It also handles loading plugins.
|
||||
#
|
||||
# > Note: `:port` and `:host` are not valid keys. By the time they make it to the
|
||||
# [Note:]
|
||||
# `:port` and `:host` are not valid keys. By the time they make it to the
|
||||
# configuration options they are expected to be incorporated into a `:binds` key.
|
||||
# Under the hood the DSL maps `port` and `host` calls to `:binds`
|
||||
#
|
||||
# config = Configuration.new({}) do |user_config, file_config, default_config|
|
||||
# user_config.port 3003
|
||||
# end
|
||||
# config.load
|
||||
# puts config.options[:port]
|
||||
# # => 3003
|
||||
# config = Configuration.new({}) do |user_config, file_config, default_config|
|
||||
# user_config.port 3003
|
||||
# end
|
||||
# config.load
|
||||
# puts config.options[:port]
|
||||
# # => 3003
|
||||
#
|
||||
# It is expected that `load` is called on the configuration instance after setting
|
||||
# config. This method expands any values in `config_file` and puts them into the
|
||||
|
|
Loading…
Add table
Reference in a new issue