Module: Sinclair::EnvSettable
Overview
Module to be extended allowing configurations from environment
Instance Method Summary collapse
-
#settings_prefix(prefix = nil) ⇒ String
Sets environment keys prefix.
Methods included from Settable::ClassMethods
Methods included from Settable
#settable_module, #setting_with_options, #with_settings
Instance Method Details
#settings_prefix(prefix = nil) ⇒ String
Sets environment keys prefix
49 50 51 52 53 |
# File 'lib/sinclair/env_settable.rb', line 49 def settings_prefix(prefix = nil) return @settings_prefix || superclass_prefix unless prefix @settings_prefix = prefix end |