1
0
Fork 0
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:
MSP-Greg 2020-10-11 20:28:31 -05:00
parent 5432a7cfc4
commit 0f5c7f3830
No known key found for this signature in database
GPG key ID: D688DA4A77D8FA18

View file

@ -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