Method: Padrino::Configuration#config

Defined in:
padrino-core/lib/padrino-core/configuration.rb

#configObject

Returns the configuration structure allowing to get and set it’s values. Padrino.config is a simple Ruby OpenStruct object with no additional magic.

Example:

Padrino.config.value1 = 42
exit if Padrino.config.exiting


17
18
19
# File 'padrino-core/lib/padrino-core/configuration.rb', line 17

def config
  @config ||= OpenStruct.new
end